toHostEnvironment method
Implementation
HostEnvironment toHostEnvironment() {
switch (this) {
case 'VMWARE':
return HostEnvironment.vmware;
case 'HYPER-V':
return HostEnvironment.hyperV;
case 'EC2':
return HostEnvironment.ec2;
case 'KVM':
return HostEnvironment.kvm;
case 'OTHER':
return HostEnvironment.other;
}
throw Exception('$this is not known in enum HostEnvironment');
}