|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace NuGet.ProjectModel
{
public partial class AssetsLogMessage
{
internal sealed partial class AssetsLogMessageSourceGen
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.ProjectModel.AssetsLogMessage>? _AssetsLogMessage;
/// <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.ProjectModel.AssetsLogMessage> AssetsLogMessage
#nullable enable annotations
{
get => _AssetsLogMessage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.ProjectModel.AssetsLogMessage>)Options.GetTypeInfo(typeof(global::NuGet.ProjectModel.AssetsLogMessage));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.ProjectModel.AssetsLogMessage> Create_AssetsLogMessage(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.ProjectModel.AssetsLogMessage>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.ProjectModel.AssetsLogMessage> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.ProjectModel.AssetsLogMessage>
{
ObjectCreator = null,
ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.ProjectModel.AssetsLogMessage((global::NuGet.Common.LogLevel)args[0], (global::NuGet.Common.NuGetLogCode)args[1], (string)args[2], (string)args[3], (string)args[4], (string)args[5], (global::System.Collections.Generic.IReadOnlyList<string>)args[6], (int)args[7], (int)args[8], (int)args[9], (int)args[10]),
PropertyMetadataInitializer = _ => AssetsLogMessagePropInit(options),
ConstructorParameterMetadataInitializer = AssetsLogMessageCtorParamInit,
ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Common.LogLevel), typeof(global::NuGet.Common.NuGetLogCode), typeof(string), typeof(string), typeof(string), typeof(string), typeof(global::System.Collections.Generic.IReadOnlyList<string>), typeof(int), typeof(int), typeof(int), typeof(int)}, modifiers: null),
SerializeHandler = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.ProjectModel.AssetsLogMessage>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] AssetsLogMessagePropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[13];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Common.NuGetLogCode>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = (global::System.Text.Json.Serialization.JsonConverter<global::NuGet.Common.NuGetLogCode>)ExpandConverter(typeof(global::NuGet.Common.NuGetLogCode), new global::System.Text.Json.Serialization.JsonStringEnumConverter<global::NuGet.Common.NuGetLogCode>(), options),
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).Code,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Code",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("Code", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.NuGetLogCode), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Common.NuGetLogCode>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Common.LogLevel>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = (global::System.Text.Json.Serialization.JsonConverter<global::NuGet.Common.LogLevel>)ExpandConverter(typeof(global::NuGet.Common.LogLevel), new global::System.Text.Json.Serialization.JsonStringEnumConverter<global::NuGet.Common.LogLevel>(), options),
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).Level,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Level",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("Level", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.LogLevel), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Common.LogLevel>(options, info1);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).Message,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Message",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("Message", 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<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).ProjectPath,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).ProjectPath = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ProjectPath",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("ProjectPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info3);
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Common.WarningLevel>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = null,
Setter = null,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.Always,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "WarningLevel",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("WarningLevel", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.WarningLevel), global::System.Array.Empty<global::System.Type>(), null),
};
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Common.WarningLevel>(options, info4);
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Common.WarningLevel?>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).WarningLevelJson,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).WarningLevelJson = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault,
HasJsonInclude = true,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "WarningLevelJson",
JsonPropertyName = "warningLevel",
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("WarningLevelJson", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.WarningLevel?), global::System.Array.Empty<global::System.Type>(), null),
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Common.WarningLevel?>(options, info5);
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).FilePath,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).FilePath = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "FilePath",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("FilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info6);
var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).LibraryId,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).LibraryId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "LibraryId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("LibraryId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info7);
var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).TargetGraphs,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).TargetGraphs = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "TargetGraphs",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("TargetGraphs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info8);
var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).StartLineNumber,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).StartLineNumber = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "StartLineNumber",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("StartLineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info9);
var info10 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).StartColumnNumber,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).StartColumnNumber = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "StartColumnNumber",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("StartColumnNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[10] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info10);
var info11 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).EndLineNumber,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).EndLineNumber = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "EndLineNumber",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("EndLineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[11] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info11);
var info12 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::NuGet.ProjectModel.AssetsLogMessage),
Converter = null,
Getter = static obj => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).EndColumnNumber,
Setter = static (obj, value) => ((global::NuGet.ProjectModel.AssetsLogMessage)obj).EndColumnNumber = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "EndColumnNumber",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("EndColumnNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[12] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info12);
return properties;
}
private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] AssetsLogMessageCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[]
{
new()
{
Name = "level",
ParameterType = typeof(global::NuGet.Common.LogLevel),
Position = 0,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "code",
ParameterType = typeof(global::NuGet.Common.NuGetLogCode),
Position = 1,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "message",
ParameterType = typeof(string),
Position = 2,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "projectPath",
ParameterType = typeof(string),
Position = 3,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "filePath",
ParameterType = typeof(string),
Position = 4,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "libraryId",
ParameterType = typeof(string),
Position = 5,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "targetGraphs",
ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<string>),
Position = 6,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "startLineNumber",
ParameterType = typeof(int),
Position = 7,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "startColumnNumber",
ParameterType = typeof(int),
Position = 8,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "endLineNumber",
ParameterType = typeof(int),
Position = 9,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "endColumnNumber",
ParameterType = typeof(int),
Position = 10,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
};
}
}
}
|