ListPoliciesForTargetResponse.fromJson constructor

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

Implementation

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