DescribeArtifactResponse.fromJson constructor
DescribeArtifactResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeArtifactResponse.fromJson(Map<String, dynamic> json) {
return DescribeArtifactResponse(
artifactArn: json['ArtifactArn'] as String?,
artifactName: json['ArtifactName'] as String?,
artifactType: json['ArtifactType'] as String?,
createdBy: json['CreatedBy'] != null
? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
: null,
creationTime: timeStampFromJson(json['CreationTime']),
lastModifiedBy: json['LastModifiedBy'] != null
? UserContext.fromJson(json['LastModifiedBy'] as Map<String, dynamic>)
: null,
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
metadataProperties: json['MetadataProperties'] != null
? MetadataProperties.fromJson(
json['MetadataProperties'] as Map<String, dynamic>)
: null,
properties: (json['Properties'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
source: json['Source'] != null
? ArtifactSource.fromJson(json['Source'] as Map<String, dynamic>)
: null,
);
}