|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Microsoft.DotNet.Cli
{
internal partial class CliSchemaJsonSerializerContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>? _OptionDetails;
/// <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.DotNet.Cli.CliSchema.OptionDetails> OptionDetails
#nullable enable annotations
{
get => _OptionDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.CliSchema.OptionDetails> Create_OptionDetails(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.CliSchema.OptionDetails> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>
{
ObjectCreator = null,
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.CliSchema.OptionDetails((string)args[0], (bool)args[1], (string[])args[2], (string)args[3], (string)args[4], (bool)args[5], (object)args[6], (global::Microsoft.DotNet.Cli.CliSchema.ArityDetails)args[7], (bool)args[8], (bool)args[9]),
PropertyMetadataInitializer = _ => OptionDetailsPropInit(options),
ConstructorParameterMetadataInitializer = OptionDetailsCtorParamInit,
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(string[]), typeof(string), typeof(string), typeof(bool), typeof(object), typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails), typeof(bool), typeof(bool)}, modifiers: null),
SerializeHandler = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] OptionDetailsPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[10];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).description,
Setter = static (obj, value) => __set_OptionDetails_description((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "description",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("description", 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<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).hidden,
Setter = static (obj, value) => __set_OptionDetails_hidden((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "hidden",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("hidden", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info1);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string[]>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).aliases,
Setter = static (obj, value) => __set_OptionDetails_aliases((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "aliases",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("aliases", 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::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).helpName,
Setter = static (obj, value) => __set_OptionDetails_helpName((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "helpName",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("helpName", 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<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).valueType,
Setter = static (obj, value) => __set_OptionDetails_valueType((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "valueType",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("valueType", 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].IsGetNullable = false;
properties[4].IsSetNullable = false;
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).hasDefaultValue,
Setter = static (obj, value) => __set_OptionDetails_hasDefaultValue((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "hasDefaultValue",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("hasDefaultValue", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info5);
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<object>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).defaultValue,
Setter = static (obj, value) => __set_OptionDetails_defaultValue((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "defaultValue",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("defaultValue", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null),
};
properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<object>(options, info6);
var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.DotNet.Cli.CliSchema.ArityDetails>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).arity,
Setter = static (obj, value) => __set_OptionDetails_arity((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "arity",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("arity", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails), global::System.Array.Empty<global::System.Type>(), null),
};
properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.DotNet.Cli.CliSchema.ArityDetails>(options, info7);
properties[7].IsGetNullable = false;
properties[7].IsSetNullable = false;
var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).@required,
Setter = static (obj, value) => __set_OptionDetails_required((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "required",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("required", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info8);
var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj).recursive,
Setter = static (obj, value) => __set_OptionDetails_recursive((global::Microsoft.DotNet.Cli.CliSchema.OptionDetails)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "recursive",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("recursive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info9);
return properties;
}
private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] OptionDetailsCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[]
{
new()
{
Name = "description",
ParameterType = typeof(string),
Position = 0,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "hidden",
ParameterType = typeof(bool),
Position = 1,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "aliases",
ParameterType = typeof(string[]),
Position = 2,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "helpName",
ParameterType = typeof(string),
Position = 3,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "valueType",
ParameterType = typeof(string),
Position = 4,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "hasDefaultValue",
ParameterType = typeof(bool),
Position = 5,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "defaultValue",
ParameterType = typeof(object),
Position = 6,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = true,
},
new()
{
Name = "arity",
ParameterType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails),
Position = 7,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "required",
ParameterType = typeof(bool),
Position = 8,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
new()
{
Name = "recursive",
ParameterType = typeof(bool),
Position = 9,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
};
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_description")]
private static extern void __set_OptionDetails_description(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, string value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_hidden")]
private static extern void __set_OptionDetails_hidden(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, bool value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_aliases")]
private static extern void __set_OptionDetails_aliases(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, string[] value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_helpName")]
private static extern void __set_OptionDetails_helpName(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, string value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_valueType")]
private static extern void __set_OptionDetails_valueType(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, string value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_hasDefaultValue")]
private static extern void __set_OptionDetails_hasDefaultValue(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, bool value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_defaultValue")]
private static extern void __set_OptionDetails_defaultValue(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, object value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_arity")]
private static extern void __set_OptionDetails_arity(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, global::Microsoft.DotNet.Cli.CliSchema.ArityDetails value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_required")]
private static extern void __set_OptionDetails_required(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, bool value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_recursive")]
private static extern void __set_OptionDetails_recursive(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails obj, bool value);
}
}
|