create static method
LocationAddress
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "locationAddress",
- String special_return_type = "locationAddress",
- String? country_code,
- String? state,
- String? city,
- String? street,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static LocationAddress create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "locationAddress",
String special_return_type = "locationAddress",
String? country_code,
String? state,
String? city,
String? street,
}) {
// LocationAddress locationAddress = LocationAddress({
final Map locationAddress_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"country_code": country_code,
"state": state,
"city": city,
"street": street,
};
locationAddress_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (locationAddress_data_create_json.containsKey(key) == false) {
locationAddress_data_create_json[key] = value;
}
});
}
return LocationAddress(locationAddress_data_create_json);
}