Map<String, dynamic> toJson() { final json = <String, dynamic>{}; json[r'from'] = from.toIso8601String(); json[r'to'] = to.toIso8601String(); json[r'seriesId'] = seriesId; return json; }