UpdateChatNotificationSettings.fromJson constructor

UpdateChatNotificationSettings.fromJson(
  1. Map<String, dynamic> json
)

Parses a UpdateChatNotificationSettings from TDLib JSON.

Implementation

factory UpdateChatNotificationSettings.fromJson(Map<String, dynamic> json) =>
    UpdateChatNotificationSettings(
      chatId: _readInt(json['chat_id']),
      notificationSettings: _readObject(
          json['notification_settings'], ChatNotificationSettings.fromJson),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );