CreateAppRequest constructor

CreateAppRequest({
  1. String? name,
  2. String? namespace,
  3. Int64? revision,
  4. Map<String, JobSpec>? jobs,
  5. CreateAppRequest_Files? files,
  6. List<int>? bundle,
})

Implementation

factory CreateAppRequest({
  $core.String? name,
  $core.String? namespace,
  $fixnum.Int64? revision,
  $core.Map<$core.String, $1.JobSpec>? jobs,
  CreateAppRequest_Files? files,
  $core.List<$core.int>? bundle,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (namespace != null) {
    _result.namespace = namespace;
  }
  if (revision != null) {
    _result.revision = revision;
  }
  if (jobs != null) {
    _result.jobs.addAll(jobs);
  }
  if (files != null) {
    _result.files = files;
  }
  if (bundle != null) {
    _result.bundle = bundle;
  }
  return _result;
}