toMap method

Map<String, dynamic> toMap()

Returns the AppleNotification as a raw Map.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'badge': badge,
    'subtitle': subtitle,
    'subtitleLocArgs': subtitleLocArgs,
    'subtitleLocKey': subtitleLocKey,
    'imageUrl': imageUrl,
    'sound': sound?.toMap(),
  };
}