PinCreateRequest constructor Null safety

PinCreateRequest(
  1. {required int messageId,
  2. required String channelUrl,
  3. required ChannelType channelType}
)

Implementation

PinCreateRequest({
  required int messageId,
  required String channelUrl,
  required ChannelType channelType,
}) {
  url = '${channelType.urlString}/$channelUrl/messages/$messageId/pin';
}