toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (alert != null) "alert": alert?.toJson(),
      if (badge != null) "badge": badge,
      if (sound != null) "sound": sound,
    };