toAuthFlowType method

AuthFlowType toAuthFlowType()

Implementation

AuthFlowType toAuthFlowType() {
  switch (this) {
    case 'USER_SRP_AUTH':
      return AuthFlowType.userSrpAuth;
    case 'REFRESH_TOKEN_AUTH':
      return AuthFlowType.refreshTokenAuth;
    case 'REFRESH_TOKEN':
      return AuthFlowType.refreshToken;
    case 'CUSTOM_AUTH':
      return AuthFlowType.customAuth;
    case 'ADMIN_NO_SRP_AUTH':
      return AuthFlowType.adminNoSrpAuth;
    case 'USER_PASSWORD_AUTH':
      return AuthFlowType.userPasswordAuth;
    case 'ADMIN_USER_PASSWORD_AUTH':
      return AuthFlowType.adminUserPasswordAuth;
  }
  throw Exception('$this is not known in enum AuthFlowType');
}