add link and ticket backend side

This commit is contained in:
2025-08-15 23:05:53 +02:00
parent 24cb90959d
commit 9eafb30374
3 changed files with 17 additions and 3 deletions

View File

@@ -5,6 +5,8 @@ class Events {
String? startDate;
String? endDate;
String? description;
String? link;
String? ticket;
double? latitude;
double? longitude;
List<String>? tags;
@@ -21,6 +23,8 @@ class Events {
this.latitude,
this.longitude,
this.organizers,
this.link,
this.ticket,
this.imgUrl});
Events.fromJson(Map<String, dynamic> json) {
@@ -38,5 +42,7 @@ class Events {
organizers = (json['organizers'] as List<dynamic>?)
?.cast<String>(); // Convert List<dynamic> to List<String>
imgUrl = json['imgUrl'] as String?;
link = json['link'] as String?;
ticket = json['ticket'] as String?;
}
}