|
// <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.Converters
{
internal partial class PackageSearchJsonContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.PackageSearchMetadataRegistration>? _PackageSearchMetadataRegistration;
/// <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.PackageSearchMetadataRegistration> PackageSearchMetadataRegistration
#nullable enable annotations
{
get => _PackageSearchMetadataRegistration ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.PackageSearchMetadataRegistration>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.PackageSearchMetadataRegistration));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.PackageSearchMetadataRegistration> Create_PackageSearchMetadataRegistration(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.PackageSearchMetadataRegistration>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.PackageSearchMetadataRegistration> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Protocol.PackageSearchMetadataRegistration>
{
ObjectCreator = () => new global::NuGet.Protocol.PackageSearchMetadataRegistration(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => PackageSearchMetadataRegistrationPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadataRegistration).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
SerializeHandler = null,
PolymorphismOptions = new global::System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions(),
TypeClassifierFactory = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Protocol.PackageSearchMetadataRegistration>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] PackageSearchMetadataRegistrationPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[31];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadataRegistration),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadataRegistration)obj).CatalogUri,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadataRegistration)obj).CatalogUri = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "CatalogUri",
JsonPropertyName = "@id",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadataRegistration).GetProperty("CatalogUri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = (global::System.Text.Json.Serialization.JsonConverter<string>)ExpandConverter(typeof(string), new global::NuGet.Protocol.Converters.MetadataFieldStjConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Authors,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Authors = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Authors",
JsonPropertyName = "authors",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Authors", 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);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).DependencySetsInternal,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).DependencySetsInternal = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "DependencySetsInternal",
JsonPropertyName = "dependencyGroups",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("DependencySetsInternal", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>>(options, info2);
var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = null,
Setter = null,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.Always,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "DependencySets",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("DependencySets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>>(options, info3);
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Description,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Description = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Description",
JsonPropertyName = "description",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Description", 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);
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<long?>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).DownloadCount,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).DownloadCount = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "DownloadCount",
JsonPropertyName = "totalDownloads",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("DownloadCount", InstanceMemberBindingFlags, null, typeof(long?), global::System.Array.Empty<global::System.Type>(), null),
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<long?>(options, info5);
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).IconUrl,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).IconUrl = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "IconUrl",
JsonPropertyName = "iconUrl",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("IconUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info6);
var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<object>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = null,
Setter = null,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.Always,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Identity",
JsonPropertyName = null,
AttributeProviderFactory = static () => null,
};
properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<object>(options, info7);
var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = (global::System.Text.Json.Serialization.JsonConverter<global::System.Uri>)ExpandConverter(typeof(global::System.Uri), new global::NuGet.Protocol.Converters.SafeUriStjConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).LicenseUrl,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).LicenseUrl = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "LicenseUrl",
JsonPropertyName = "licenseUrl",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("LicenseUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info8);
var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = (global::System.Text.Json.Serialization.JsonConverter<global::System.Collections.Generic.IReadOnlyList<string>>)ExpandConverter(typeof(global::System.Collections.Generic.IReadOnlyList<string>), new global::NuGet.Protocol.Converters.MetadataStringOrArrayStjConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).OwnersList,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).OwnersList = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "OwnersList",
JsonPropertyName = "owners",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("OwnersList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info9);
var info10 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = null,
Setter = null,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.Always,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Owners",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Owners", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[10] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info10);
var info11 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).PackageId,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).PackageId = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "PackageId",
JsonPropertyName = "id",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("PackageId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[11] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info11);
var info12 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = (global::System.Text.Json.Serialization.JsonConverter<global::System.Uri>)ExpandConverter(typeof(global::System.Uri), new global::NuGet.Protocol.Converters.SafeUriStjConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).ProjectUrl,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).ProjectUrl = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ProjectUrl",
JsonPropertyName = "projectUrl",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("ProjectUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[12] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info12);
var info13 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.DateTimeOffset?>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Published,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Published = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Published",
JsonPropertyName = "published",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Published", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null),
};
properties[13] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.DateTimeOffset?>(options, info13);
var info14 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = (global::System.Text.Json.Serialization.JsonConverter<global::System.Uri>)ExpandConverter(typeof(global::System.Uri), new global::NuGet.Protocol.Converters.SafeUriStjConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).ReadmeUrl,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).ReadmeUrl = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ReadmeUrl",
JsonPropertyName = "readmeUrl",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("ReadmeUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[14] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info14);
var info15 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = null,
Setter = null,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.Always,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ReadmeFileUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("ReadmeFileUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[15] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info15);
var info16 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = null,
Setter = null,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.Always,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ReportAbuseUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("ReportAbuseUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[16] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info16);
var info17 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = null,
Setter = null,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.Always,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "PackageDetailsUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("PackageDetailsUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[17] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info17);
var info18 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = (global::System.Text.Json.Serialization.JsonConverter<bool>)ExpandConverter(typeof(bool), new global::NuGet.Protocol.Converters.SafeBoolStjConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).RequireLicenseAcceptance,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).RequireLicenseAcceptance = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "RequireLicenseAcceptance",
JsonPropertyName = "requireLicenseAcceptance",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("RequireLicenseAcceptance", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[18] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info18);
var info19 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Summary,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Summary = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Summary",
JsonPropertyName = "summary",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Summary", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[19] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info19);
var info20 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = (global::System.Text.Json.Serialization.JsonConverter<string>)ExpandConverter(typeof(string), new global::NuGet.Protocol.Converters.MetadataFieldStjConverter(), options),
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Tags,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Tags = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Tags",
JsonPropertyName = "tags",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Tags", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[20] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info20);
var info21 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Title,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Title = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Title",
JsonPropertyName = "title",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[21] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info21);
var info22 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Versioning.NuGetVersion>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Version,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Version = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Version",
JsonPropertyName = "version",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null),
};
properties[22] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Versioning.NuGetVersion>(options, info22);
var info23 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Core.Types.VersionInfo[]>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).ParsedVersions,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).ParsedVersions = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ParsedVersions",
JsonPropertyName = "versions",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("ParsedVersions", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Core.Types.VersionInfo[]), global::System.Array.Empty<global::System.Type>(), null),
};
properties[23] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Core.Types.VersionInfo[]>(options, info23);
var info24 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).PrefixReserved,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).PrefixReserved = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "PrefixReserved",
JsonPropertyName = "verified",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("PrefixReserved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[24] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info24);
var info25 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).LicenseExpression,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).LicenseExpression = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "LicenseExpression",
JsonPropertyName = "licenseExpression",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("LicenseExpression", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[25] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info25);
var info26 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).LicenseExpressionVersion,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).LicenseExpressionVersion = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "LicenseExpressionVersion",
JsonPropertyName = "licenseExpressionVersion",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("LicenseExpressionVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[26] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info26);
var info27 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<object>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = null,
Setter = null,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.Always,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "LicenseMetadata",
JsonPropertyName = null,
AttributeProviderFactory = static () => null,
};
properties[27] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<object>(options, info27);
var info28 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).IsListed,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).IsListed = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "IsListed",
JsonPropertyName = "listed",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("IsListed", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[28] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info28);
var info29 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.PackageDeprecationMetadata>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).DeprecationMetadata,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).DeprecationMetadata = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "DeprecationMetadata",
JsonPropertyName = "deprecation",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("DeprecationMetadata", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.PackageDeprecationMetadata), global::System.Array.Empty<global::System.Type>(), null),
};
properties[29] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.PackageDeprecationMetadata>(options, info29);
var info30 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.Protocol.PackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Vulnerabilities,
Setter = static (obj, value) => ((global::NuGet.Protocol.PackageSearchMetadata)obj).Vulnerabilities = value!,
IgnoreCondition = null,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Vulnerabilities",
JsonPropertyName = "vulnerabilities",
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageSearchMetadata).GetProperty("Vulnerabilities", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[30] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>>(options, info30);
return properties;
}
}
}
|