UpdateNotificationGroup.fromJson constructor
Parses a UpdateNotificationGroup from TDLib JSON.
Implementation
factory UpdateNotificationGroup.fromJson(Map<String, dynamic> json) =>
UpdateNotificationGroup(
notificationGroupId: _readInt(json['notification_group_id']),
type: _readObject(json['type'], NotificationGroupType.fromJson),
chatId: _readInt(json['chat_id']),
notificationSettingsChatId: _readInt(
json['notification_settings_chat_id'],
),
notificationSoundId: _readInt(json['notification_sound_id']),
totalCount: _readInt(json['total_count']),
addedNotifications: _readList<Notification>(
json['added_notifications'],
(e) => _readObject(e, Notification.fromJson),
),
removedNotificationIds: _readList<int>(
json['removed_notification_ids'],
_readInt,
),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);