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']),
      themeName: _readString(json['theme_name']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );