DescribeConformancePacksResponse.fromJson constructor

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

Implementation

factory DescribeConformancePacksResponse.fromJson(Map<String, dynamic> json) {
  return DescribeConformancePacksResponse(
    conformancePackDetails: (json['ConformancePackDetails'] as List?)
        ?.whereNotNull()
        .map((e) => ConformancePackDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}