IAMPolicyAssignment.fromJson constructor
IAMPolicyAssignment.fromJson(
- Map<String, dynamic> json
)
Implementation
factory IAMPolicyAssignment.fromJson(Map<String, dynamic> json) {
return IAMPolicyAssignment(
assignmentId: json['AssignmentId'] as String?,
assignmentName: json['AssignmentName'] as String?,
assignmentStatus:
(json['AssignmentStatus'] as String?)?.toAssignmentStatus(),
awsAccountId: json['AwsAccountId'] as String?,
identities: (json['Identities'] as Map<String, dynamic>?)?.map((k, e) =>
MapEntry(
k, (e as List).whereNotNull().map((e) => e as String).toList())),
policyArn: json['PolicyArn'] as String?,
);
}