ChannelMetaDataUpdateRequest constructor Null safety

ChannelMetaDataUpdateRequest(
  1. {required ChannelType channelType,
  2. required String channelUrl,
  3. required Map<String, String> metaData,
  4. bool upsert = true}
)

Implementation

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