// <auto-generated/>

#nullable disable

using System.ClientModel.Primitives;
using System.Xml.Linq;
using Sample.Models;

namespace Sample
{
    public partial class MockInputModel
    {
        internal static global::Sample.Models.MockInputModel DeserializeMockInputModel(global::System.Xml.Linq.XElement element, global::System.ClientModel.Primitives.ModelReaderWriterOptions options)
        {
            if ((element == null))
            {
                return null;
            }

            string prop1 = default;
            string prop2 = default;

            foreach (var child in element.Elements())
            {
                string localName = child.Name.LocalName;
                if ((localName == "prop1"))
                {
                    DeserializationMethod(child, ref prop1, options);
                    continue;
                }
                if ((localName == "prop2"))
                {
                    DeserializationMethod(child, ref prop2, options);
                    continue;
                }
            }
            return new global::Sample.Models.MockInputModel(prop1, prop2);
        }
    }
}
