NotificationGroup.fromMap constructor

NotificationGroup.fromMap(
  1. Map<String, dynamic> map
)

Implementation

NotificationGroup.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  id = map['id'];
  if (map['type'] != null) {
    type = TdApiMap.fromMap(map['type']) as NotificationGroupType;
  }
  chat_id = map['chat_id'];
  total_count = map['total_count'];
  if (map['notifications'] != null) {
    notifications = [];
    for (var someValue in map['notifications']) {
      if (someValue != null) {
        notifications?.add(TdApiMap.fromMap(someValue) as Notification);
      }
    }
  }
}