// <auto-generated/>

#nullable disable

using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
using Sample.Models;

namespace Sample
{
    public partial class Cat
    {
        public static explicit operator Cat(global::System.ClientModel.ClientResult result)
        {
            global::System.ClientModel.Primitives.PipelineResponse response = result.GetRawResponse();
            using global::System.Text.Json.JsonDocument document = global::System.Text.Json.JsonDocument.Parse(response.Content, global::Sample.ModelSerializationExtensions.JsonDocumentOptions);
            return global::Sample.Models.Cat.DeserializeCat(document.RootElement, global::Sample.ModelSerializationExtensions.WireOptions);
        }
    }
}
