LanguagePackInfo.fromJson constructor

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

Parses a LanguagePackInfo from TDLib JSON.

Implementation

factory LanguagePackInfo.fromJson(Map<String, dynamic> json) =>
    LanguagePackInfo(
      id: _readString(json['id']),
      baseLanguagePackId: _readString(json['base_language_pack_id']),
      name: _readString(json['name']),
      nativeName: _readString(json['native_name']),
      pluralCode: _readString(json['plural_code']),
      isOfficial: _readBool(json['is_official']),
      isRtl: _readBool(json['is_rtl']),
      isBeta: _readBool(json['is_beta']),
      isInstalled: _readBool(json['is_installed']),
      totalStringCount: _readInt(json['total_string_count']),
      translatedStringCount: _readInt(json['translated_string_count']),
      localStringCount: _readInt(json['local_string_count']),
      translationUrl: _readString(json['translation_url']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );