create static method

LanguagePackInfo create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "languagePackInfo",
  3. String special_return_type = "languagePackInfo",
  4. String? id,
  5. String? base_language_pack_id,
  6. String? name,
  7. String? native_name,
  8. String? plural_code,
  9. bool? is_official,
  10. bool? is_rtl,
  11. bool? is_beta,
  12. bool? is_installed,
  13. num? total_string_count,
  14. num? translated_string_count,
  15. num? local_string_count,
  16. 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);
}