User.fromJson constructor

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

Implementation

factory User.fromJson(Map<String, dynamic> json) {
  return User(
    authenticationType:
        (json['AuthenticationType'] as String).toAuthenticationType(),
    arn: json['Arn'] as String?,
    createdTime: timeStampFromJson(json['CreatedTime']),
    enabled: json['Enabled'] as bool?,
    firstName: json['FirstName'] as String?,
    lastName: json['LastName'] as String?,
    status: json['Status'] as String?,
    userName: json['UserName'] as String?,
  );
}