toTenancy method
Implementation
Tenancy toTenancy() {
switch (this) {
case 'DEDICATED':
return Tenancy.dedicated;
case 'SHARED':
return Tenancy.shared;
}
throw Exception('$this is not known in enum Tenancy');
}
Tenancy toTenancy() {
switch (this) {
case 'DEDICATED':
return Tenancy.dedicated;
case 'SHARED':
return Tenancy.shared;
}
throw Exception('$this is not known in enum Tenancy');
}