StartBuildRequest constructor

StartBuildRequest({
  1. String? repo,
  2. String? ref,
  3. Iterable<String>? platforms,
  4. String? moduleId,
  5. String? moduleVersion,
  6. String? token,
  7. String? workdir,
})

Implementation

factory StartBuildRequest({
  $core.String? repo,
  $core.String? ref,
  $core.Iterable<$core.String>? platforms,
  $core.String? moduleId,
  $core.String? moduleVersion,
  $core.String? token,
  $core.String? workdir,
}) {
  final $result = create();
  if (repo != null) {
    $result.repo = repo;
  }
  if (ref != null) {
    $result.ref = ref;
  }
  if (platforms != null) {
    $result.platforms.addAll(platforms);
  }
  if (moduleId != null) {
    $result.moduleId = moduleId;
  }
  if (moduleVersion != null) {
    $result.moduleVersion = moduleVersion;
  }
  if (token != null) {
    $result.token = token;
  }
  if (workdir != null) {
    $result.workdir = workdir;
  }
  return $result;
}