create static method
DownloadedFileCounts
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "downloadedFileCounts",
- String special_return_type = "downloadedFileCounts",
- num? active_count,
- num? paused_count,
- num? completed_count,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static DownloadedFileCounts create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "downloadedFileCounts",
String special_return_type = "downloadedFileCounts",
num? active_count,
num? paused_count,
num? completed_count,
}) {
// DownloadedFileCounts downloadedFileCounts = DownloadedFileCounts({
final Map downloadedFileCounts_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"active_count": active_count,
"paused_count": paused_count,
"completed_count": completed_count,
};
downloadedFileCounts_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (downloadedFileCounts_data_create_json.containsKey(key) == false) {
downloadedFileCounts_data_create_json[key] = value;
}
});
}
return DownloadedFileCounts(downloadedFileCounts_data_create_json);
}