toMap method
Return Map
representation of Notification
.
Implementation
Map<String, dynamic> toMap() {
return {
"layout": layout,
"title": title,
"text": text,
"color": color,
"channelName": channelName,
"channelId": channelId,
"smallIcon": smallIcon,
"largeIcon": largeIcon,
"priority": priority,
"sticky": sticky,
"strings": strings,
"actions": actions
};
}