is null. The problem might be that each item has a different name. How can I fix it?
public class RiotChampionWrapper{ [JsonPropertyName("data")] private List<RiotChampion> Champions { get; set; }}public class RiotChampion{ [JsonPropertyName("id")] public string Id { get; set; } [JsonPropertyName("key")] public string Key { get; set; } [JsonPropertyName("name")] public string Name { get; set; }}
public class RiotChampionWrapper{ [JsonPropertyName("data")] private List<RiotChampion> Champions { get; set; }}public class RiotChampion{ [JsonPropertyName("id")] public string Id { get; set; } [JsonPropertyName("key")] public string Key { get; set; } [JsonPropertyName("name")] public string Name { get; set; }}