toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (android != null) 'android': android!,
      if (apns != null) 'apns': apns!,
      if (condition != null) 'condition': condition!,
      if (data != null) 'data': data!,
      if (fcmOptions != null) 'fcmOptions': fcmOptions!,
      if (name != null) 'name': name!,
      if (notification != null) 'notification': notification!,
      if (token != null) 'token': token!,
      if (topic != null) 'topic': topic!,
      if (webpush != null) 'webpush': webpush!,
    };