CognitoUserPoolData.fromData constructor

CognitoUserPoolData.fromData(
  1. CognitoUser user,
  2. Map<String, dynamic> parsedJson
)

Implementation

factory CognitoUserPoolData.fromData(
    CognitoUser user, Map<String, dynamic> parsedJson) {
  return CognitoUserPoolData(
    user,
    userConfirmed: parsedJson['UserConfirmed'] ?? false,
    userSub: parsedJson['UserSub'],
  );
}