create static method

UpdateFileDownload create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateFileDownload",
  3. String special_return_type = "update",
  4. num? file_id,
  5. num? complete_date,
  6. bool? is_paused,
  7. 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);
}