GroupChannelPushTriggerOptionSetRequest constructor Null safety

GroupChannelPushTriggerOptionSetRequest(
  1. {required String channelUrl,
  2. required GroupChannelPushTriggerOption option,
  3. String? userId}
)

Implementation

GroupChannelPushTriggerOptionSetRequest(
    {required String channelUrl,
    required GroupChannelPushTriggerOption option,
    String? userId})
    : super(userId: userId) {
  url = 'users/${userId ?? state.userId}/push_preference/$channelUrl';
  body = {
    'push_trigger_option': groupChannelPushTriggerOptionEnumMap[option]
  };
}