toJson method
Implementation
@override
Object toJson() => {
'endTime': ?endTime,
'location': ?location,
if (otherLocations.isNotDefault)
'otherLocations': {
for (final e in otherLocations.entries) e.key: e.value.toJson(),
},
'recommendationId': ?recommendationId,
'recommendationType': ?recommendationType,
'startTime': ?startTime,
};