ModuleMetadata constructor

ModuleMetadata({
  1. Iterable<Model>? models,
  2. Iterable<ModuleVersion>? versions,
  3. String? entrypoint,
  4. String? firstRun,
})

Implementation

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