toValue method
Implementation
String toValue() {
switch (this) {
case ReservationState.active:
return 'ACTIVE';
case ReservationState.expired:
return 'EXPIRED';
case ReservationState.processing:
return 'PROCESSING';
case ReservationState.canceled:
return 'CANCELED';
}
}