DescribeConformancePackComplianceResponse.fromJson constructor

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

Implementation

factory DescribeConformancePackComplianceResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeConformancePackComplianceResponse(
    conformancePackName: json['ConformancePackName'] as String,
    conformancePackRuleComplianceList:
        (json['ConformancePackRuleComplianceList'] as List)
            .whereNotNull()
            .map((e) => ConformancePackRuleCompliance.fromJson(
                e as Map<String, dynamic>))
            .toList(),
    nextToken: json['NextToken'] as String?,
  );
}