AssetShallow.fromJson constructor

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

Implementation

factory AssetShallow.fromJson(Map<String, dynamic> json) {
  return AssetShallow(
    arn: json['arn'] as String?,
    createdAt: json['createdAt'] as String?,
    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)),
  );
}