DescribeResourcePoliciesResponse.fromJson constructor

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

Implementation

factory DescribeResourcePoliciesResponse.fromJson(Map<String, dynamic> json) {
  return DescribeResourcePoliciesResponse(
    nextToken: json['nextToken'] as String?,
    resourcePolicies: (json['resourcePolicies'] as List?)
        ?.whereNotNull()
        .map((e) => ResourcePolicy.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}