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