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