UpdateNotificationGroup.fromMap constructor
UpdateNotificationGroup.fromMap(
- Map<String, dynamic> map
)
Implementation
UpdateNotificationGroup.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
notification_group_id = map['notification_group_id'];
if (map['type'] != null) {
type = TdApiMap.fromMap(map['type']) as NotificationGroupType;
}
chat_id = map['chat_id'];
notification_settings_chat_id = map['notification_settings_chat_id'];
notification_sound_id = map['notification_sound_id'];
total_count = map['total_count'];
if (map['added_notifications'] != null) {
added_notifications = [];
for (var someValue in map['added_notifications']) {
if (someValue != null) {
added_notifications?.add(TdApiMap.fromMap(someValue) as Notification);
}
}
}
if (map['removed_notification_ids'] != null) {
removed_notification_ids = [];
for (var someValue in map['removed_notification_ids']) {
removed_notification_ids?.add(someValue);
}
}
}