DescribeAssetResponse.fromJson constructor

DescribeAssetResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DescribeAssetResponse.fromJson(Map<String, dynamic> json) {
  return DescribeAssetResponse(
    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)),
  );
}