GetConformancePackComplianceDetailsResponse.fromJson constructor

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

Implementation

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