Invitation constructor

Invitation({
  1. int? id,
  2. int? tutor,
  3. int? customer,
  4. int? chat,
  5. String? cancellationPeriodHours,
  6. bool? hasCancellationPenalty,
  7. DateTime? paymentHoldsAt,
  8. int? paymentAmountInCents,
  9. List<Booking> bookings = const [],
  10. List<InvitationDate> invitationDates = const [],
  11. int? coupon,
  12. DateTime? created,
  13. DateTime? modified,
  14. DateTime? deletedAt,
  15. bool? isTutorPaid,
  16. bool? isAcceptedByCustomer,
  17. bool? isAcceptedByTutor,
  18. bool? isRejectedByCustomer,
  19. bool? isRejectedByTutor,
  20. bool? isCreatedByCustomer,
  21. String? location,
  22. DateTime? acceptanceChangedAt,
  23. DateTime? cancelledAt,
  24. bool? cancelledByCustomer,
  25. DateTime? startTime,
  26. DateTime? endTime,
  27. int? numWeeks,
  28. String? cancelReason,
  29. bool? acceptancePendingReminded,
  30. bool? isTrialCall,
  31. int? subject,
  32. int? cancelledBy,
  33. int? creditCard,
})

Returns a new Invitation instance.

Implementation

Invitation({
  this.id,
  this.tutor,
  this.customer,
  this.chat,
  this.cancellationPeriodHours,
  this.hasCancellationPenalty,
  this.paymentHoldsAt,
  this.paymentAmountInCents,
  this.bookings = const [],
  this.invitationDates = const [],
  this.coupon,
  this.created,
  this.modified,
  this.deletedAt,
  this.isTutorPaid,
  this.isAcceptedByCustomer,
  this.isAcceptedByTutor,
  this.isRejectedByCustomer,
  this.isRejectedByTutor,
  this.isCreatedByCustomer,
  this.location,
  this.acceptanceChangedAt,
  this.cancelledAt,
  this.cancelledByCustomer,
  this.startTime,
  this.endTime,
  this.numWeeks,
  this.cancelReason,
  this.acceptancePendingReminded,
  this.isTrialCall,
  this.subject,
  this.cancelledBy,
  this.creditCard,
});