toMap method

Map<String, dynamic> toMap()

Returns the RemoteNotification as a raw Map.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'title': title,
    'titleLocArgs': titleLocArgs,
    'titleLocKey': titleLocKey,
    'body': body,
    'bodyLocArgs': bodyLocArgs,
    'bodyLocKey': bodyLocKey,
    'android': android?.toMap(),
    'apple': apple?.toMap(),
    'web': web?.toMap(),
  };
}