ApiVersion constructor

ApiVersion({
  1. String? name,
  2. String? displayName,
  3. String? description,
  4. Timestamp? createTime,
  5. Timestamp? updateTime,
  6. String? state,
  7. Map<String, String>? labels,
  8. Map<String, String>? annotations,
})

Implementation

factory ApiVersion({
  $core.String? name,
  $core.String? displayName,
  $core.String? description,
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  $core.String? state,
  $core.Map<$core.String, $core.String>? labels,
  $core.Map<$core.String, $core.String>? annotations,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (description != null) {
    $result.description = description;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (state != null) {
    $result.state = state;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (annotations != null) {
    $result.annotations.addAll(annotations);
  }
  return $result;
}