toMap method

Map<String, dynamic> toMap()

Serializes this payload to a map accepted by fromMap.

Implementation

Map<String, dynamic> toMap() => {
  'id': id,
  'title': title,
  'body': body,
  'channelId': channelId,
  'data': data,
  'soundName': soundName,
  'silent': silent,
};