ListIAMPolicyAssignmentsForUserResponse.fromJson constructor

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

Implementation

factory ListIAMPolicyAssignmentsForUserResponse.fromJson(
    Map<String, dynamic> json) {
  return ListIAMPolicyAssignmentsForUserResponse(
    activeAssignments: (json['ActiveAssignments'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ActiveIAMPolicyAssignment.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
    requestId: json['RequestId'] as String?,
  );
}