ZIMPushConfig.fromMap constructor

ZIMPushConfig.fromMap(
  1. Map map
)

Implementation

ZIMPushConfig.fromMap(Map<dynamic, dynamic> map)
    : title = map['title']!,
      content = map['content']!,
      payload = map['payload']!,
      threadID = map['threadID']!,
      resourcesID = map['resourcesID']!,
      enableBadge = map['enableBadge']!,
      badgeIncrement = map['badgeIncrement']!,
      voIPConfig = (map['voIPConfig'] != null)
          ? ZIMVoIPConfig.fromMap(map['voIPConfig'])
          : null,
      privateMessageTemplate = (map['privateMessageTemplate'] != null)
          ? ZIMOfflinePushPrivateMessageTemplate.fromMap(
              map['privateMessageTemplate'])
          : null;