toRuntime method

Runtime toRuntime()

Implementation

Runtime toRuntime() {
  switch (this) {
    case 'nodejs':
      return Runtime.nodejs;
  }
  throw Exception('$this is not known in enum Runtime');
}