@@ -45,7 +45,6 @@ class TicketType {
4545 };
4646 }
4747
48- // Add copyWith method for easier updates
4948 TicketType copyWith ({
5049 int ? typeId,
5150 int ? eventId,
@@ -84,9 +83,8 @@ class TicketDetailsModel {
8483 final String ? eventName;
8584 final DateTime ? eventStartDate;
8685
87- // Add ticket type details for convenience
8886 final String ? ticketTypeDescription;
89- final DateTime ? ticketAvailableFrom; // Added this field
87+ final DateTime ? ticketAvailableFrom;
9088
9189 TicketDetailsModel ({
9290 required this .ticketId,
@@ -98,7 +96,7 @@ class TicketDetailsModel {
9896 this .eventName,
9997 this .eventStartDate,
10098 this .ticketTypeDescription,
101- this .ticketAvailableFrom, // Added this parameter
99+ this .ticketAvailableFrom,
102100 });
103101
104102 factory TicketDetailsModel .fromJson (Map <String , dynamic > json) {
@@ -120,7 +118,6 @@ class TicketDetailsModel {
120118 : json['eventStartDate' ] != null
121119 ? DateTime .parse (json['eventStartDate' ])
122120 : null ,
123- // Add ticket type description and available from
124121 ticketTypeDescription: json['ticket_type_description' ],
125122 ticketAvailableFrom: json['ticket_available_from' ] != null
126123 ? DateTime .parse (json['ticket_available_from' ])
0 commit comments