#[derive(Serialize, Deserialize)]pub struct Elements<T>(HashMap<DateTime<Utc>, T>)
{"Values": [data here]}
{[data here]}
public class Elements<T>{ public Dictionary<DateTime, T> Values { get; set; } public Elements(Dictionary<DateTime, T> values) { Values = values; } public static Elements<T> NewTest(string isoDateString, T firstValue) { DateTime parsedDate = DateTime.Parse(isoDateString); Dictionary<DateTime, T> values = new Dictionary<DateTime, T> { { parsedDate, firstValue } }; return new Elements<T>(values); }}