|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Microsoft.AspNetCore.Http
{
internal sealed partial class ProblemDetailsJsonContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails>? _HttpValidationProblemDetails;
/// <summary>
/// Defines the source generated JSON serialization contract metadata for a given type.
/// </summary>
#nullable disable annotations // Marking the property type as nullable-oblivious.
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails> HttpValidationProblemDetails
#nullable enable annotations
{
get => _HttpValidationProblemDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails> Create_HttpValidationProblemDetails(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails>
{
ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => HttpValidationProblemDetailsPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
SerializeHandler = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] HttpValidationProblemDetailsPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[7];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IDictionary<string, string[]>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails)obj).Errors,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails)obj).Errors = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Errors",
JsonPropertyName = "errors",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails).GetProperty("Errors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, string[]>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IDictionary<string, string[]>>(options, info0);
properties[0].IsGetNullable = false;
properties[0].IsSetNullable = false;
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Type",
JsonPropertyName = "type",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info1);
properties[1].Order = -5;
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Title",
JsonPropertyName = "title",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info2);
properties[2].Order = -4;
var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int?>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Status",
JsonPropertyName = "status",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int?>(options, info3);
properties[3].Order = -3;
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Detail",
JsonPropertyName = "detail",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info4);
properties[4].Order = -2;
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Instance",
JsonPropertyName = "instance",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info5);
properties[5].Order = -1;
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IDictionary<string, object>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = true,
NumberHandling = null,
PropertyName = "Extensions",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IDictionary<string, object>>(options, info6);
properties[6].IsGetNullable = false;
properties[6].IsSetNullable = false;
return properties;
}
}
}
|