toAccountType method
Implementation
AccountType toAccountType() {
switch (this) {
case 'Team':
return AccountType.team;
case 'EnterpriseDirectory':
return AccountType.enterpriseDirectory;
case 'EnterpriseLWA':
return AccountType.enterpriseLWA;
case 'EnterpriseOIDC':
return AccountType.enterpriseOIDC;
}
throw Exception('$this is not known in enum AccountType');
}