using System.Text.Json.Serialization; namespace CFCoreAPI.Endpoints.Games.Responses { public class VersionsResponse { [JsonConstructor] public VersionsResponse( List data ) { this.Data = data; } public IReadOnlyList Data { get; } public class DataModel { [JsonConstructor] public DataModel( int type, List versions ) { this.Type = type; this.Versions = versions; } public int Type { get; } public IReadOnlyList Versions { get; } } } }