ChannelMetaCounterUpdateRequest constructor Null safety

ChannelMetaCounterUpdateRequest(
  1. {required ChannelType channelType,
  2. required String channelUrl,
  3. required Map<String, int> metaCounter,
  4. required MetaCounterMode mode,
  5. bool upsert = true}
)

Implementation

ChannelMetaCounterUpdateRequest({
  required ChannelType channelType,
  required String channelUrl,
  required Map<String, int> metaCounter,
  required MetaCounterMode mode,
  bool upsert = true,
}) : super() {
  url = '${channelType.urlString}/$channelUrl/metacounter';
  body = {
    'metacounter': metaCounter,
    'upsert': upsert,
    'mode': mode.asString()
  };
}