User.fromJson constructor

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

Implementation

factory User.fromJson(Map<String, dynamic> json) {
  return User(
    active: json['Active'] as bool?,
    arn: json['Arn'] as String?,
    customPermissionsName: json['CustomPermissionsName'] as String?,
    email: json['Email'] as String?,
    identityType: (json['IdentityType'] as String?)?.toIdentityType(),
    principalId: json['PrincipalId'] as String?,
    role: (json['Role'] as String?)?.toUserRole(),
    userName: json['UserName'] as String?,
  );
}