toDomain method
Implementation
Domain toDomain() {
switch (this) {
case 'RETAIL':
return Domain.retail;
case 'CUSTOM':
return Domain.custom;
case 'INVENTORY_PLANNING':
return Domain.inventoryPlanning;
case 'EC2_CAPACITY':
return Domain.ec2Capacity;
case 'WORK_FORCE':
return Domain.workForce;
case 'WEB_TRAFFIC':
return Domain.webTraffic;
case 'METRICS':
return Domain.metrics;
}
throw Exception('$this is not known in enum Domain');
}