toEndpointStatus method

EndpointStatus toEndpointStatus()

Implementation

EndpointStatus toEndpointStatus() {
  switch (this) {
    case 'OutOfService':
      return EndpointStatus.outOfService;
    case 'Creating':
      return EndpointStatus.creating;
    case 'Updating':
      return EndpointStatus.updating;
    case 'SystemUpdating':
      return EndpointStatus.systemUpdating;
    case 'RollingBack':
      return EndpointStatus.rollingBack;
    case 'InService':
      return EndpointStatus.inService;
    case 'Deleting':
      return EndpointStatus.deleting;
    case 'Failed':
      return EndpointStatus.failed;
  }
  throw Exception('$this is not known in enum EndpointStatus');
}