init method

Future<void> init({
  1. UHotelResponse? hotel,
  2. UHotelRoomResponse? room,
})

Implementation

Future<void> init({UHotelResponse? hotel, UHotelRoomResponse? room}) async {
  this.hotel = hotel;
  this.room = room;
  await read();
}