ListComplianceStatusResponse.fromJson constructor

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

Implementation

factory ListComplianceStatusResponse.fromJson(Map<String, dynamic> json) {
  return ListComplianceStatusResponse(
    nextToken: json['NextToken'] as String?,
    policyComplianceStatusList: (json['PolicyComplianceStatusList'] as List?)
        ?.whereNotNull()
        .map(
            (e) => PolicyComplianceStatus.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}