ModuleVersion constructor

ModuleVersion({
  1. String? version,
  2. Iterable<Uploads>? files,
  3. Iterable<Model>? models,
  4. String? entrypoint,
  5. String? firstRun,
})

Implementation

factory ModuleVersion({
  $core.String? version,
  $core.Iterable<Uploads>? files,
  $core.Iterable<Model>? models,
  $core.String? entrypoint,
  $core.String? firstRun,
}) {
  final $result = create();
  if (version != null) {
    $result.version = version;
  }
  if (files != null) {
    $result.files.addAll(files);
  }
  if (models != null) {
    $result.models.addAll(models);
  }
  if (entrypoint != null) {
    $result.entrypoint = entrypoint;
  }
  if (firstRun != null) {
    $result.firstRun = firstRun;
  }
  return $result;
}