fromMap static method

dynamic fromMap(
  1. Map map
)

Convert supplied Map to Notification instance.

Implementation

static fromMap(Map map) {
  return CoffeeBackgroundNotification(
      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,
      channelName: (map['channelName'] != null) ? map['channelName'] : null,
      channelId: (map['channelId'] != null) ? map['channelId'] : null
  );
}