toJson method
Serialize to a JSON-encodable map, omitting absent members.
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'eventId': eventId,
'startDate': startDate,
'endDate': endDate,
'groupFloor': groupFloor,
'tiers': tiers.map((e) => e.toJson()).toList(),
};