toEndpointStatus method

EndpointStatus toEndpointStatus()

Implementation

EndpointStatus toEndpointStatus() {
  switch (this) {
    case 'created':
      return EndpointStatus.created;
    case 'creating':
      return EndpointStatus.creating;
    case 'deleted':
      return EndpointStatus.deleted;
    case 'deleting':
      return EndpointStatus.deleting;
    case 'failed':
      return EndpointStatus.failed;
  }
  throw Exception('$this is not known in enum EndpointStatus');
}