toShipmentState method
Implementation
ShipmentState toShipmentState() {
switch (this) {
case 'RECEIVED':
return ShipmentState.received;
case 'RETURNED':
return ShipmentState.returned;
}
throw Exception('$this is not known in enum ShipmentState');
}