ChannelMetaDataCreateRequest constructor Null safety

ChannelMetaDataCreateRequest(
  1. {required ChannelType channelType,
  2. required String channelUrl,
  3. required Map<String, String> metaData,
  4. String? userId}
)

Implementation

ChannelMetaDataCreateRequest({
  required ChannelType channelType,
  required String channelUrl,
  required Map<String, String> metaData,
  String? userId,
}) : super(userId: userId) {
  url = '${channelType.urlString}/$channelUrl/metadata';
  body = {'metadata': metaData, 'upsert': true};
  queryParams = {'include_ts': true};
}