toMap method
Implementation
Map<String, dynamic> toMap() => {
"total_events": totalEventList == null
? []
: List<dynamic>.from(totalEventList!.map((x) => x.toJson())),
"sliderList": sliderList == null
? []
: List<dynamic>.from(sliderList!.map((x) => x.toMap())),
"upcoming_events": upcomingEvents == null
? []
: List<dynamic>.from(upcomingEvents!.map((x) => x.toJson())),
"musicTypeList": musicTypeList == null
? []
: List<dynamic>.from(musicTypeList!.map((x) => x.toMap())),
"suggested_upcoming_events": suggestedUpcomingEvents == null
? []
: List<dynamic>.from(
suggestedUpcomingEvents!.map((x) => x.toJson())),
"artistList": artistList == null
? []
: List<dynamic>.from(artistList!.map((x) => x.toMap())),
"event_this_week": eventThisWeek == null
? []
: List<dynamic>.from(eventThisWeek!.map((x) => x.toMap())),
};