UserPushTriggerOptionSetRequest constructor

UserPushTriggerOptionSetRequest(
  1. PushTriggerOption option, {
  2. String? userId,
})

Implementation

UserPushTriggerOptionSetRequest(PushTriggerOption option, {String? userId})
    : super(userId: userId) {
  url = 'users/${userId ?? state.userId}/push_preference';
  body = {'push_trigger_option': pushTriggerOptionEnumMap[option]};
}