GetEffectivePermissionsForPathResponse.fromJson constructor

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

Implementation

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