create static method
UpdateOption
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "updateOption",
- String special_return_type = "update",
- String? name,
- OptionValue? value,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static UpdateOption create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "updateOption",
String special_return_type = "update",
String? name,
OptionValue? value,
}) {
// UpdateOption updateOption = UpdateOption({
final Map updateOption_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"name": name,
"value": (value != null) ? value.toJson() : null,
};
updateOption_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (updateOption_data_create_json.containsKey(key) == false) {
updateOption_data_create_json[key] = value;
}
});
}
return UpdateOption(updateOption_data_create_json);
}