HotelBooking class
Constructors
-
HotelBooking({DateTime? checkInDate, DateTime? checkOutDate, LeadGuest? holder, List<
RoomGuests> roomGuests = const []}) - Returns a new HotelBooking instance.
Properties
- checkInDate ↔ DateTime?
-
The check-in date booked now.
getter/setter pair
- checkOutDate ↔ DateTime?
-
The check-out date booked now.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- holder ↔ LeadGuest?
-
The lead guest booked now, with email and phone masked.
getter/setter pair
-
roomGuests
↔ List<
RoomGuests> -
The guests of each room booked now, in room order. The booking keeps no guest nationality or country of residence, so those are null.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → HotelBooking? -
Returns a new HotelBooking instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< HotelBooking> -
mapFromJson(
dynamic json) → Map< String, HotelBooking> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< HotelBooking> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.