AwsIamUserDetails.fromJson constructor

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

Implementation

factory AwsIamUserDetails.fromJson(Map<String, dynamic> json) {
  return AwsIamUserDetails(
    attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AwsIamAttachedManagedPolicy.fromJson(e as Map<String, dynamic>))
        .toList(),
    createDate: json['CreateDate'] as String?,
    groupList: (json['GroupList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    path: json['Path'] as String?,
    permissionsBoundary: json['PermissionsBoundary'] != null
        ? AwsIamPermissionsBoundary.fromJson(
            json['PermissionsBoundary'] as Map<String, dynamic>)
        : null,
    userId: json['UserId'] as String?,
    userName: json['UserName'] as String?,
    userPolicyList: (json['UserPolicyList'] as List?)
        ?.whereNotNull()
        .map((e) => AwsIamUserPolicy.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}