ListPoliciesResponse.fromJson constructor

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

Implementation

factory ListPoliciesResponse.fromJson(Map<String, dynamic> json) {
  return ListPoliciesResponse(
    nextToken: json['NextToken'] as String?,
    policyList: (json['PolicyList'] as List?)
        ?.whereNotNull()
        .map((e) => PolicySummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}