I am getting the following Json from an API:
{
"name":"xyz",
"interval": "H1",
"points": [
{
"speed": 1431,
"mid": { "h": "1.07904", "l": "1.07872" }
}
]
}
And I created the models:
public class Response {
public String? Name { get; set; }
public IntervalEnum? Interval { get; set; }
public List<Point> Points { get; set; } = new List<Point>();
}
public class Point {
public Double Speed { get; set; }
[JsonPropertyName("mid.h")]
public Double High { get; set; }
[JsonPropertyName("mid.l")]
public Double Low { get; set; }
}
I am getting all values but not High and Low.
How can I parse those values?