toAdjustmentType method
Implementation
AdjustmentType toAdjustmentType() {
switch (this) {
case 'CHANGE_IN_CAPACITY':
return AdjustmentType.changeInCapacity;
case 'PERCENT_CHANGE_IN_CAPACITY':
return AdjustmentType.percentChangeInCapacity;
case 'EXACT_CAPACITY':
return AdjustmentType.exactCapacity;
}
throw Exception('$this is not known in enum AdjustmentType');
}