ListPermissionsResponse.fromJson constructor

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

Implementation

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