create static method
LanguageCodeDataDetail
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "languageCodeDataDetail",
- String? name,
- String? flag,
- String? code,
- String? dial_code,
override
return original data json
Implementation
static LanguageCodeDataDetail create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "languageCodeDataDetail",
String? name,
String? flag,
String? code,
String? dial_code,
}) {
// LanguageCodeDataDetail languageCodeDataDetail = LanguageCodeDataDetail({
final Map languageCodeDataDetail_data_create_json = {
"@type": special_type,
"name": name,
"flag": flag,
"code": code,
"dial_code": dial_code,
};
languageCodeDataDetail_data_create_json
.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (languageCodeDataDetail_data_create_json.containsKey(key) == false) {
languageCodeDataDetail_data_create_json[key] = value;
}
});
}
return LanguageCodeDataDetail(languageCodeDataDetail_data_create_json);
}