public static void Main()
""AppUrl"": ""SomeAppUrl"",
""AuthenticationEndPoint"": ""SomeAuthenticationEndPoint"",
""TokenEndPoint"": ""SomeTokenEndPoint"",
""AppKey"": ""SomeAppKey"",
""OpenApiBaseUrl"": ""SomeBaseUrl"",
""StreamingUrl"": ""SomeStreamingUrl""
var settings = JsonSerializer.Deserialize<Settings>(text);
Console.WriteLine(settings.OpenApiConfig);
public record ApiConfig {
public string AppUrl { get; init; } = string.Empty;
public string AuthenticationEndPoint { get; init; } = string.Empty;
public string TokenEndPoint { get; init; } = string.Empty;
public string AppKey { get; init; } = string.Empty;
public string OpenApiBaseUrl { get; init; } = string.Empty;
public string StreamingUrl { get; set; } = string.Empty;
public ApiConfig OpenApiConfig { get; init; } = new();