DownloadPlanRequest constructor

DownloadPlanRequest({
  1. String? modelId,
  2. ModelInfo? model,
  3. bool? resumeExisting,
  4. Int64? availableStorageBytes,
  5. bool? allowMeteredNetwork,
  6. String? storageNamespace,
  7. bool? validateExistingBytes,
  8. bool? verifyChecksums,
  9. Int64? requiredFreeBytesAfterDownload,
})

Implementation

factory DownloadPlanRequest({
  $core.String? modelId,
  $0.ModelInfo? model,
  $core.bool? resumeExisting,
  $fixnum.Int64? availableStorageBytes,
  $core.bool? allowMeteredNetwork,
  $core.String? storageNamespace,
  $core.bool? validateExistingBytes,
  $core.bool? verifyChecksums,
  $fixnum.Int64? requiredFreeBytesAfterDownload,
}) {
  final result = create();
  if (modelId != null) result.modelId = modelId;
  if (model != null) result.model = model;
  if (resumeExisting != null) result.resumeExisting = resumeExisting;
  if (availableStorageBytes != null)
    result.availableStorageBytes = availableStorageBytes;
  if (allowMeteredNetwork != null)
    result.allowMeteredNetwork = allowMeteredNetwork;
  if (storageNamespace != null) result.storageNamespace = storageNamespace;
  if (validateExistingBytes != null)
    result.validateExistingBytes = validateExistingBytes;
  if (verifyChecksums != null) result.verifyChecksums = verifyChecksums;
  if (requiredFreeBytesAfterDownload != null)
    result.requiredFreeBytesAfterDownload = requiredFreeBytesAfterDownload;
  return result;
}