// Code generated by jtd-codegen for C# + System.Text.Json v0.2.1
#pragma warning disable CS8601, CS8618

using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Senzing.Schema
{
    [JsonConverter(typeof(FeatureScoresJsonConverter))]
    public class FeatureScores
    {
        /// <summary>
        /// The underlying data being wrapped.
        /// </summary>
        public IDictionary<string, IList<FeatureScoreForAttribute>> Value { get; set; }
    }

    public class FeatureScoresJsonConverter : JsonConverter<FeatureScores>
    {
        public override FeatureScores Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
        {
            return new FeatureScores { Value = JsonSerializer.Deserialize<IDictionary<string, IList<FeatureScoreForAttribute>>>(ref reader, options) };
        }

        public override void Write(Utf8JsonWriter writer, FeatureScores value, JsonSerializerOptions options)
        {
            JsonSerializer.Serialize<IDictionary<string, IList<FeatureScoreForAttribute>>>(writer, value.Value, options);
        }
    }
}
