// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;

namespace OpenAI.Audio
{
    internal partial class InternalCreateTranscriptionResponseJson
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal InternalCreateTranscriptionResponseJson(string text)
        {
            Text = text;
            Logprobs = new ChangeTrackingList<InternalCreateTranscriptionResponseJsonLogprob>();
        }

        internal InternalCreateTranscriptionResponseJson(string text, IList<InternalCreateTranscriptionResponseJsonLogprob> logprobs, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Text = text;
            Logprobs = logprobs ?? new ChangeTrackingList<InternalCreateTranscriptionResponseJsonLogprob>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Text { get; }

        internal IList<InternalCreateTranscriptionResponseJsonLogprob> Logprobs { get; }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
