toVirtualNodeStatusCode method

VirtualNodeStatusCode toVirtualNodeStatusCode()

Implementation

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