toResourceType method
Implementation
ResourceType toResourceType() {
switch (this) {
case 'GPU':
return ResourceType.gpu;
case 'VCPU':
return ResourceType.vcpu;
case 'MEMORY':
return ResourceType.memory;
}
throw Exception('$this is not known in enum ResourceType');
}