toEndpointStatus method
Implementation
EndpointStatus toEndpointStatus() {
switch (this) {
case 'CREATING':
return EndpointStatus.creating;
case 'DELETING':
return EndpointStatus.deleting;
case 'FAILED':
return EndpointStatus.failed;
case 'IN_SERVICE':
return EndpointStatus.inService;
case 'UPDATING':
return EndpointStatus.updating;
}
throw Exception('$this is not known in enum EndpointStatus');
}