CreateAssetResponse.fromJson constructor
CreateAssetResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreateAssetResponse.fromJson(Map<String, dynamic> json) {
return CreateAssetResponse(
arn: json['arn'] as String?,
createdAt: json['createdAt'] as String?,
egressEndpoints: (json['egressEndpoints'] as List?)
?.whereNotNull()
.map((e) => EgressEndpoint.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as String?,
packagingGroupId: json['packagingGroupId'] as String?,
resourceId: json['resourceId'] as String?,
sourceArn: json['sourceArn'] as String?,
sourceRoleArn: json['sourceRoleArn'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}