UpdateLanguagePackStrings.fromJson constructor

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

Parses a UpdateLanguagePackStrings from TDLib JSON.

Implementation

factory UpdateLanguagePackStrings.fromJson(Map<String, dynamic> json) =>
    UpdateLanguagePackStrings(
      localizationTarget: _readString(json['localization_target']),
      languagePackId: _readString(json['language_pack_id']),
      strings: _readList<LanguagePackString>(json['strings'],
          (e) => _readObject(e, LanguagePackString.fromJson)),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );