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