@override Object toJson() => { if (location.isNotDefault) 'location': location, if (timeRange != null) 'timeRange': timeRange!.toJson(), };