toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (headers != null) "headers": headers?.toJson(),
      if (notification != null) "notification": notification?.toJson(),
      if (fcmOptions != null) "fcm_options": fcmOptions?.toJson(),
    };