toDomainType method
Implementation
DomainType toDomainType() {
switch (this) {
case 'ENDPOINT':
return DomainType.endpoint;
case 'AWS_MANAGED':
return DomainType.awsManaged;
case 'CUSTOMER_MANAGED':
return DomainType.customerManaged;
}
throw Exception('$this is not known in enum DomainType');
}