toVirtualServiceStatusCode method

VirtualServiceStatusCode toVirtualServiceStatusCode()

Implementation

VirtualServiceStatusCode toVirtualServiceStatusCode() {
  switch (this) {
    case 'ACTIVE':
      return VirtualServiceStatusCode.active;
    case 'INACTIVE':
      return VirtualServiceStatusCode.inactive;
    case 'DELETED':
      return VirtualServiceStatusCode.deleted;
  }
  throw Exception('$this is not known in enum VirtualServiceStatusCode');
}