App constructor

App({
  1. List<int>? appId,
  2. String? name,
  3. String? namespace,
  4. Int64? revision,
  5. List<int>? sourceId,
  6. Map<String, JobSpec>? jobs,
  7. Timestamp? createdAt,
  8. List<int>? createdBy,
})

Implementation

factory App({
  $core.List<$core.int>? appId,
  $core.String? name,
  $core.String? namespace,
  $fixnum.Int64? revision,
  $core.List<$core.int>? sourceId,
  $core.Map<$core.String, JobSpec>? jobs,
  $0.Timestamp? createdAt,
  $core.List<$core.int>? createdBy,
}) {
  final _result = create();
  if (appId != null) {
    _result.appId = appId;
  }
  if (name != null) {
    _result.name = name;
  }
  if (namespace != null) {
    _result.namespace = namespace;
  }
  if (revision != null) {
    _result.revision = revision;
  }
  if (sourceId != null) {
    _result.sourceId = sourceId;
  }
  if (jobs != null) {
    _result.jobs.addAll(jobs);
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (createdBy != null) {
    _result.createdBy = createdBy;
  }
  return _result;
}