toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ShipmentState.received:
      return 'RECEIVED';
    case ShipmentState.returned:
      return 'RETURNED';
  }
}