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