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