toMap method

Map<String, dynamic> toMap()

Returns the RemoteMessage as a raw Map.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'senderId': senderId,
    'category': category,
    'collapseKey': collapseKey,
    'contentAvailable': contentAvailable,
    'data': data,
    'from': from,
    'messageId': messageId,
    'messageType': messageType,
    'mutableContent': mutableContent,
    'notification': notification?.toMap(),
    'sentTime': sentTime?.millisecondsSinceEpoch,
    'threadId': threadId,
    'ttl': ttl,
  };
}