UserData.fromJson constructor
Implementation
factory UserData.fromJson(Map<String, dynamic> json) {
return UserData(
email: json['Email'] as String?,
enrollmentId: json['EnrollmentId'] as String?,
enrollmentStatus:
(json['EnrollmentStatus'] as String?)?.toEnrollmentStatus(),
firstName: json['FirstName'] as String?,
lastName: json['LastName'] as String?,
userArn: json['UserArn'] as String?,
);
}