ApiSpec constructor

ApiSpec({
  1. String? name,
  2. String? filename,
  3. String? description,
  4. String? revisionId,
  5. Timestamp? createTime,
  6. Timestamp? revisionCreateTime,
  7. Timestamp? revisionUpdateTime,
  8. String? mimeType,
  9. int? sizeBytes,
  10. String? hash,
  11. String? sourceUri,
  12. Map<String, String>? labels,
  13. Map<String, String>? annotations,
})

Implementation

factory ApiSpec({
  $core.String? name,
  $core.String? filename,
  $core.String? description,
  $core.String? revisionId,
  $2.Timestamp? createTime,
  $2.Timestamp? revisionCreateTime,
  $2.Timestamp? revisionUpdateTime,
  $core.String? mimeType,
  $core.int? sizeBytes,
  $core.String? hash,
  $core.String? sourceUri,
  $core.Map<$core.String, $core.String>? labels,
  $core.Map<$core.String, $core.String>? annotations,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (filename != null) {
    $result.filename = filename;
  }
  if (description != null) {
    $result.description = description;
  }
  if (revisionId != null) {
    $result.revisionId = revisionId;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (revisionCreateTime != null) {
    $result.revisionCreateTime = revisionCreateTime;
  }
  if (revisionUpdateTime != null) {
    $result.revisionUpdateTime = revisionUpdateTime;
  }
  if (mimeType != null) {
    $result.mimeType = mimeType;
  }
  if (sizeBytes != null) {
    $result.sizeBytes = sizeBytes;
  }
  if (hash != null) {
    $result.hash = hash;
  }
  if (sourceUri != null) {
    $result.sourceUri = sourceUri;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (annotations != null) {
    $result.annotations.addAll(annotations);
  }
  return $result;
}