toResourceType method

ResourceType toResourceType()

Implementation

ResourceType toResourceType() {
  switch (this) {
    case 'GPU':
      return ResourceType.gpu;
    case 'InferenceAccelerator':
      return ResourceType.inferenceAccelerator;
  }
  throw Exception('$this is not known in enum ResourceType');
}