@override Object toJson() => { if (timeSeriesData case final timeSeriesData?) 'timeSeriesData': timeSeriesData.toJson(), };