toMap method

Map<String, dynamic> toMap()

Return Map representation of Notification.

Implementation

Map<String, dynamic> toMap() {
  return {
    "title": title,
    "text": text,
    "color": color,
    "channelName": channelName,
    "channelId": channelId,
    "smallIcon": smallIcon,
    "largeIcon": largeIcon,
    "priority": priority
  };
}