File: AppJsonContext.Decimal.g.cs
Project: src\playground\nats\Nats.Common\Nats.Common.csproj (Nats.Common)
// <auto-generated/>
 
#nullable enable annotations
#nullable disable warnings
 
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
 
namespace Nats.Common
{
    public partial class AppJsonContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<decimal>? _Decimal;
        
        /// <summary>
        /// Defines the source generated JSON serialization contract metadata for a given type.
        /// </summary>
        public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<decimal> Decimal
        {
            get => _Decimal ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<decimal>)Options.GetTypeInfo(typeof(decimal));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<decimal> Create_Decimal(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<decimal>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<decimal> jsonTypeInfo))
            {
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<decimal>(options, global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.DecimalConverter);
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }
    }
}