@override Object toJson() { return { if (timeSeriesData != null) 'timeSeriesData': timeSeriesData!.toJson(), }; }