ArtifactResponse constructor

ArtifactResponse({
  1. Kref? kref,
  2. String? location,
  3. Kref? revisionKref,
  4. Kref? itemKref,
  5. String? createdAt,
  6. String? modifiedAt,
  7. String? author,
  8. Iterable<MapEntry<String, String>>? metadata,
  9. bool? deprecated,
  10. String? username,
  11. String? name,
})

Implementation

factory ArtifactResponse({
  Kref? kref,
  $core.String? location,
  Kref? revisionKref,
  Kref? itemKref,
  $core.String? createdAt,
  $core.String? modifiedAt,
  $core.String? author,
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? metadata,
  $core.bool? deprecated,
  $core.String? username,
  $core.String? name,
}) {
  final result = create();
  if (kref != null) result.kref = kref;
  if (location != null) result.location = location;
  if (revisionKref != null) result.revisionKref = revisionKref;
  if (itemKref != null) result.itemKref = itemKref;
  if (createdAt != null) result.createdAt = createdAt;
  if (modifiedAt != null) result.modifiedAt = modifiedAt;
  if (author != null) result.author = author;
  if (metadata != null) result.metadata.addEntries(metadata);
  if (deprecated != null) result.deprecated = deprecated;
  if (username != null) result.username = username;
  if (name != null) result.name = name;
  return result;
}