toServerType method

ServerType toServerType()

Implementation

ServerType toServerType() {
  switch (this) {
    case 'VIRTUAL_MACHINE':
      return ServerType.virtualMachine;
  }
  throw Exception('$this is not known in enum ServerType');
}