create static method
InputFile
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "inputFile",
- bool special_is_json_scheme_class = true,
- String special_return_type = "inputFile",
- InputFileId? input_file_id,
- InputFileRemote? input_file_remote,
- InputFileLocal? input_file_local,
- InputFileGenerated? input_file_generated,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static InputFile create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "inputFile",
bool special_is_json_scheme_class = true,
String special_return_type = "inputFile",
InputFileId? input_file_id,
InputFileRemote? input_file_remote,
InputFileLocal? input_file_local,
InputFileGenerated? input_file_generated,
}) {
// InputFile inputFile = InputFile({
final Map inputFile_data_create_json = {
"@type": special_type,
"@is_json_scheme_class": special_is_json_scheme_class,
"@return_type": special_return_type,
"input_file_id": (input_file_id != null) ? input_file_id.toJson() : null,
"input_file_remote": (input_file_remote != null) ? input_file_remote.toJson() : null,
"input_file_local": (input_file_local != null) ? input_file_local.toJson() : null,
"input_file_generated": (input_file_generated != null) ? input_file_generated.toJson() : null,
};
inputFile_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (inputFile_data_create_json.containsKey(key) == false) {
inputFile_data_create_json[key] = value;
}
});
}
return InputFile(inputFile_data_create_json);
}