create static method
LanguagePackInfo
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "languagePackInfo",
- String special_return_type = "languagePackInfo",
- String? id,
- String? base_language_pack_id,
- String? name,
- String? native_name,
- String? plural_code,
- bool? is_official,
- bool? is_rtl,
- bool? is_beta,
- bool? is_installed,
- num? total_string_count,
- num? translated_string_count,
- num? local_string_count,
- String? translation_url,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static LanguagePackInfo create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "languagePackInfo",
String special_return_type = "languagePackInfo",
String? id,
String? base_language_pack_id,
String? name,
String? native_name,
String? plural_code,
bool? is_official,
bool? is_rtl,
bool? is_beta,
bool? is_installed,
num? total_string_count,
num? translated_string_count,
num? local_string_count,
String? translation_url,
}) {
// LanguagePackInfo languagePackInfo = LanguagePackInfo({
final Map languagePackInfo_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"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,
};
languagePackInfo_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (languagePackInfo_data_create_json.containsKey(key) == false) {
languagePackInfo_data_create_json[key] = value;
}
});
}
return LanguagePackInfo(languagePackInfo_data_create_json);
}