create static method
FileDownload
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "fileDownload",
- String special_return_type = "fileDownload",
- num? file_id,
- Message? message,
- num? add_date,
- num? complete_date,
- bool? is_paused,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static FileDownload create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "fileDownload",
String special_return_type = "fileDownload",
num? file_id,
Message? message,
num? add_date,
num? complete_date,
bool? is_paused,
}) {
// FileDownload fileDownload = FileDownload({
final Map fileDownload_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"file_id": file_id,
"message": (message != null) ? message.toJson() : null,
"add_date": add_date,
"complete_date": complete_date,
"is_paused": is_paused,
};
fileDownload_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (fileDownload_data_create_json.containsKey(key) == false) {
fileDownload_data_create_json[key] = value;
}
});
}
return FileDownload(fileDownload_data_create_json);
}