fromMap static method
override
Construct from Map.
Implementation
static LanguagePackInfo? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var id = _map['id']! as String;
var base_language_pack_id = _map['base_language_pack_id']! as String;
var name = _map['name']! as String;
var native_name = _map['native_name']! as String;
var plural_code = _map['plural_code']! as String;
var is_official = _map['is_official']! as bool;
var is_rtl = _map['is_rtl']! as bool;
var is_beta = _map['is_beta']! as bool;
var is_installed = _map['is_installed']! as bool;
var total_string_count = _map['total_string_count']! as int;
var translated_string_count = _map['translated_string_count']! as int;
var local_string_count = _map['local_string_count']! as int;
var translation_url = _map['translation_url']! as String;
return LanguagePackInfo(
extra: extra,
clientId: clientId,
id: id,
base_language_pack_id: base_language_pack_id,
name: name,
native_name: native_name,
plural_code: plural_code,
is_official: is_official,
is_rtl: is_rtl,
is_beta: is_beta,
is_installed: is_installed,
total_string_count: total_string_count,
translated_string_count: translated_string_count,
local_string_count: local_string_count,
translation_url: translation_url,
);
}