// <auto-generated/>

#nullable disable

using System;
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();
            global::System.BinaryData data = response.Content;
            using global::System.Text.Json.JsonDocument document = global::System.Text.Json.JsonDocument.Parse(data, global::Sample.ModelSerializationExtensions.JsonDocumentOptions);
            return global::Sample.Models.Cat.DeserializeCat(document.RootElement, data, global::Sample.ModelSerializationExtensions.WireOptions);
        }
    }
}
