toReservationState method

ReservationState toReservationState()

Implementation

ReservationState toReservationState() {
  switch (this) {
    case 'ACTIVE':
      return ReservationState.active;
    case 'EXPIRED':
      return ReservationState.expired;
    case 'PROCESSING':
      return ReservationState.processing;
    case 'CANCELED':
      return ReservationState.canceled;
  }
  throw Exception('$this is not known in enum ReservationState');
}