|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace NuGet.CommandLine.XPlat
{
internal partial class PackageSearchJsonContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>? _IPackageSearchMetadata;
/// <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.Core.Types.IPackageSearchMetadata> IPackageSearchMetadata
#nullable enable annotations
{
get => _IPackageSearchMetadata ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata> Create_IPackageSearchMetadata(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>
{
ObjectCreator = null,
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => IPackageSearchMetadataPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = null,
SerializeHandler = IPackageSearchMetadataSerializeHandler,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] IPackageSearchMetadataPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[23];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Authors,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Authors",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Authors", 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<global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).DependencySets,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "DependencySets",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("DependencySets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>>(options, info1);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Description,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Description",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Description", 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);
var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<long?>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).DownloadCount,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "DownloadCount",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("DownloadCount", InstanceMemberBindingFlags, null, typeof(long?), global::System.Array.Empty<global::System.Type>(), null),
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<long?>(options, info3);
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).IconUrl,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "IconUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("IconUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info4);
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Packaging.Core.PackageIdentity>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Identity,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Identity",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.Core.PackageIdentity), global::System.Array.Empty<global::System.Type>(), null),
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Packaging.Core.PackageIdentity>(options, info5);
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).LicenseUrl,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "LicenseUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("LicenseUrl", 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<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).ProjectUrl,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ProjectUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("ProjectUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info7);
var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).ReadmeUrl,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ReadmeUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("ReadmeUrl", 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<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).ReadmeFileUrl,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ReadmeFileUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("ReadmeFileUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info9);
var info10 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).ReportAbuseUrl,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ReportAbuseUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("ReportAbuseUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[10] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info10);
var info11 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Uri>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).PackageDetailsUrl,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "PackageDetailsUrl",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("PackageDetailsUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
};
properties[11] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Uri>(options, info11);
var info12 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.DateTimeOffset?>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Published,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Published",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Published", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null),
};
properties[12] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.DateTimeOffset?>(options, info12);
var info13 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).OwnersList,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "OwnersList",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("OwnersList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[13] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info13);
var info14 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Owners,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Owners",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Owners", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[14] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info14);
var info15 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).RequireLicenseAcceptance,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "RequireLicenseAcceptance",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("RequireLicenseAcceptance", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[15] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info15);
var info16 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Summary,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Summary",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Summary", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[16] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info16);
var info17 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Tags,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Tags",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Tags", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[17] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info17);
var info18 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Title,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Title",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[18] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info18);
var info19 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).IsListed,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "IsListed",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("IsListed", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[19] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info19);
var info20 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).PrefixReserved,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "PrefixReserved",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("PrefixReserved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[20] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info20);
var info21 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Packaging.LicenseMetadata>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).LicenseMetadata,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "LicenseMetadata",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("LicenseMetadata", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.LicenseMetadata), global::System.Array.Empty<global::System.Type>(), null),
};
properties[21] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Packaging.LicenseMetadata>(options, info21);
var info22 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = true,
DeclaringType = typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata),
Converter = null,
Getter = static obj => ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)obj).Vulnerabilities,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Vulnerabilities",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Vulnerabilities", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[22] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>>(options, info22);
return properties;
}
// Intentionally not a static method because we create a delegate to it. Invoking delegates to instance
// methods is almost as fast as virtual calls. Static methods need to go through a shuffle thunk.
private void IPackageSearchMetadataSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::NuGet.Protocol.Core.Types.IPackageSearchMetadata? value)
{
if (value is null)
{
writer.WriteNullValue();
return;
}
writer.WriteStartObject();
writer.WriteString(PropName_Authors, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Authors);
writer.WritePropertyName(PropName_DependencySets);
IEnumerablePackageDependencyGroupSerializeHandler(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).DependencySets);
writer.WriteString(PropName_Description, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Description);
writer.WritePropertyName(PropName_DownloadCount);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).DownloadCount, NullableInt64);
writer.WritePropertyName(PropName_IconUrl);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).IconUrl, Uri);
writer.WritePropertyName(PropName_Identity);
PackageIdentitySerializeHandler(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Identity);
writer.WritePropertyName(PropName_LicenseUrl);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).LicenseUrl, Uri);
writer.WritePropertyName(PropName_ProjectUrl);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).ProjectUrl, Uri);
writer.WritePropertyName(PropName_ReadmeUrl);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).ReadmeUrl, Uri);
writer.WriteString(PropName_ReadmeFileUrl, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).ReadmeFileUrl);
writer.WritePropertyName(PropName_ReportAbuseUrl);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).ReportAbuseUrl, Uri);
writer.WritePropertyName(PropName_PackageDetailsUrl);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).PackageDetailsUrl, Uri);
writer.WritePropertyName(PropName_Published);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Published, NullableDateTimeOffset);
writer.WritePropertyName(PropName_OwnersList);
IReadOnlyListStringSerializeHandler(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).OwnersList);
writer.WriteString(PropName_Owners, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Owners);
writer.WriteBoolean(PropName_RequireLicenseAcceptance, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).RequireLicenseAcceptance);
writer.WriteString(PropName_Summary, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Summary);
writer.WriteString(PropName_Tags, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Tags);
writer.WriteString(PropName_Title, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Title);
writer.WriteBoolean(PropName_IsListed, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).IsListed);
writer.WriteBoolean(PropName_PrefixReserved, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).PrefixReserved);
writer.WritePropertyName(PropName_LicenseMetadata);
LicenseMetadataSerializeHandler(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).LicenseMetadata);
writer.WritePropertyName(PropName_Vulnerabilities);
IEnumerablePackageVulnerabilityMetadataSerializeHandler(writer, ((global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)value).Vulnerabilities);
writer.WriteEndObject();
}
}
}
|