toEndpointType method
Implementation
EndpointType toEndpointType() {
switch (this) {
case 'PUBLIC':
return EndpointType.public;
case 'VPC':
return EndpointType.vpc;
case 'VPC_ENDPOINT':
return EndpointType.vpcEndpoint;
}
throw Exception('$this is not known in enum EndpointType');
}