ArtifactResponse constructor
ArtifactResponse({ - Kref? kref,
- String? location,
- Kref? revisionKref,
- Kref? itemKref,
- String? createdAt,
- String? modifiedAt,
- String? author,
- Iterable<MapEntry<String, String>>? metadata,
- bool? deprecated,
- String? username,
- 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;
}