fromMap static method

dynamic fromMap(
  1. Map map
)

Convert supplied Map to Notification instance.

Implementation

static fromMap(Map map) {
  return Notification(
      layout: (map['layout'] != null) ? map['layout'] : null,
      title: (map['title'] != null) ? map['title'] : null,
      text: (map['text'] != null) ? map['text'] : null,
      color: (map['color'] != null) ? map['color'] : null,
      smallIcon: (map['smallIcon'] != null) ? map['smallIcon'] : null,
      largeIcon: (map['largeIcon'] != null) ? map['largeIcon'] : null,
      priority: (map['priority'] != null) ? map['priority'] : null,
      sticky: (map['sticky'] != null) ? map['sticky'] : null,
      channelName: (map['channelName'] != null) ? map['channelName'] : null,
      channelId: (map['channelId'] != null) ? map['channelId'] : null,
      strings: (map['strings'] != null)
          ? map['strings'].cast<String, String>()
          : null,
      actions:
          (map['actions'] != null) ? map['actions'].cast<String>() : null);
}