ChannelMessageGetRequest constructor Null safety

ChannelMessageGetRequest(
  1. {required ChannelType channelType,
  2. required String channelUrl,
  3. required int messageId,
  4. required MessageRetrievalParams params}
)

Implementation

ChannelMessageGetRequest({
  required ChannelType channelType,
  required String channelUrl,
  required int messageId,
  required MessageRetrievalParams params,
}) : super() {
  url = '${channelType.urlString}/$channelUrl/messages/$messageId';
  queryParams = params.toJson();
}