|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace NuGet.Protocol.Utility
{
internal partial class JsonContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.ServiceIndexEntryModel>? _ServiceIndexEntryModel;
/// <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::NuGet.Protocol.Model.ServiceIndexEntryModel> ServiceIndexEntryModel
#nullable enable annotations
{
get => _ServiceIndexEntryModel ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.ServiceIndexEntryModel>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.ServiceIndexEntryModel> Create_ServiceIndexEntryModel(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.Model.ServiceIndexEntryModel>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.ServiceIndexEntryModel> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Protocol.Model.ServiceIndexEntryModel>
{
ObjectCreator = () => new global::NuGet.Protocol.Model.ServiceIndexEntryModel(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => ServiceIndexEntryModelPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel).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::NuGet.Protocol.Model.ServiceIndexEntryModel>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] ServiceIndexEntryModelPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[3];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Model.ServiceIndexEntryModel)obj).Id,
Setter = static (obj, value) => ((global::NuGet.Protocol.Model.ServiceIndexEntryModel)obj).Id = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Id",
JsonPropertyName = "@id",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string[]>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel),
Converter = (global::System.Text.Json.Serialization.JsonConverter<string[]>)ExpandConverter(typeof(string[]), new global::NuGet.Protocol.Converters.ServiceIndexEntryStringOrArrayConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.Model.ServiceIndexEntryModel)obj).Type,
Setter = static (obj, value) => ((global::NuGet.Protocol.Model.ServiceIndexEntryModel)obj).Type = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Type",
JsonPropertyName = "@type",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel).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].IsGetNullable = false;
properties[1].IsSetNullable = false;
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string[]>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel),
Converter = (global::System.Text.Json.Serialization.JsonConverter<string[]>)ExpandConverter(typeof(string[]), new global::NuGet.Protocol.Converters.ServiceIndexEntryStringOrArrayConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.Model.ServiceIndexEntryModel)obj).ClientVersion,
Setter = static (obj, value) => ((global::NuGet.Protocol.Model.ServiceIndexEntryModel)obj).ClientVersion = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ClientVersion",
JsonPropertyName = "clientVersion",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel).GetProperty("ClientVersion", 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);
return properties;
}
}
}
|