create static method
Countries
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "countries",
- String special_return_type = "countries",
- List<
CountryInfo> ? countries,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static Countries create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "countries",
String special_return_type = "countries",
List<CountryInfo>? countries,
}) {
// Countries countries = Countries({
final Map countries_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"countries": (countries != null) ? countries.toJson() : null,
};
countries_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (countries_data_create_json.containsKey(key) == false) {
countries_data_create_json[key] = value;
}
});
}
return Countries(countries_data_create_json);
}