toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "detail1": detail1,
  "detail2": detail2,
  "guestName": guestName,
  "guestPhone": guestPhone,
  "notes": notes,
  "nightCount": nightCount,
  "reservationCode": reservationCode,
  "guests": List<dynamic>.from(guests.map((UReservationGuestJson x) => x.toMap())),
  "cancelledAt": cancelledAt?.toIso8601String(),
  "cancelReason": cancelReason,
  "cancellationPenalty": cancellationPenalty,
  "refundAmount": refundAmount,
};