toType method
Implementation
Type toType() {
switch (this) {
case 'ACCOUNT':
return Type.account;
case 'ORGANIZATION':
return Type.organization;
}
throw Exception('$this is not known in enum Type');
}
Type toType() {
switch (this) {
case 'ACCOUNT':
return Type.account;
case 'ORGANIZATION':
return Type.organization;
}
throw Exception('$this is not known in enum Type');
}