UpdateChatTheme.fromJson constructor

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

Parses a UpdateChatTheme from TDLib JSON.

Implementation

factory UpdateChatTheme.fromJson(Map<String, dynamic> json) =>
    UpdateChatTheme(
      chatId: _readInt(json['chat_id']),
      theme: _readOptional(json['theme'], ChatTheme.fromJson),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );