// <auto-generated/>

#nullable disable

using System;
using System.Runtime.InteropServices;
using System.Text.Json;

namespace Sample
{
    public partial class ModelSerializationExtensions
    {
        public static global::System.BinaryData GetUtf8Bytes(this global::System.Text.Json.JsonElement element)
        {
#if NET9_0_OR_GREATER
            return new global::System.BinaryData(global::System.Runtime.InteropServices.JsonMarshal.GetRawUtf8Value(element).ToArray());
#else
            return global::System.BinaryData.FromString(element.GetRawText());
#endif
        }
    }
}
