DescribeUserResponse.fromJson constructor

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

Implementation

factory DescribeUserResponse.fromJson(Map<String, dynamic> json) {
  return DescribeUserResponse(
    disabledDate: timeStampFromJson(json['DisabledDate']),
    displayName: json['DisplayName'] as String?,
    email: json['Email'] as String?,
    enabledDate: timeStampFromJson(json['EnabledDate']),
    name: json['Name'] as String?,
    state: (json['State'] as String?)?.toEntityState(),
    userId: json['UserId'] as String?,
    userRole: (json['UserRole'] as String?)?.toUserRole(),
  );
}