20 lines
481 B
C#
20 lines
481 B
C#
using System.Text.Json.Serialization;
|
|
using LeagueAPI.Models.DDragon.Champions;
|
|
|
|
namespace LeagueAPI.Models.DDragon;
|
|
|
|
public record class ChampionResponse
|
|
{
|
|
[JsonPropertyName("type")]
|
|
public string? Type { get; init; }
|
|
|
|
[JsonPropertyName("format")]
|
|
public string? Format { get; init; }
|
|
|
|
[JsonPropertyName("version")]
|
|
public string? Version { get; init; }
|
|
|
|
[JsonPropertyName("data")]
|
|
public Dictionary<string, ChampionData>? Data { get; init; }
|
|
}
|