internal LivePipelineSetRequestBody(string methodName, string apiVersion, string name, SystemData systemData, LivePipelineProperties properties) : base(methodName, apiVersion)
 {
     Name       = name;
     SystemData = systemData;
     Properties = properties;
     MethodName = methodName ?? "LivePipelineSetRequestBody";
 }
        internal static LivePipelineSetRequestBody DeserializeLivePipelineSetRequestBody(JsonElement element)
        {
            string name = default;
            Optional <SystemData>             systemData = default;
            Optional <LivePipelineProperties> properties = default;
            string            methodName = default;
            Optional <string> apiVersion = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("name"))
                {
                    name = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("systemData"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    systemData = SystemData.DeserializeSystemData(property.Value);
                    continue;
                }
                if (property.NameEquals("properties"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    properties = LivePipelineProperties.DeserializeLivePipelineProperties(property.Value);
                    continue;
                }
                if (property.NameEquals("methodName"))
                {
                    methodName = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("@apiVersion"))
                {
                    apiVersion = property.Value.GetString();
                    continue;
                }
            }
            return(new LivePipelineSetRequestBody(methodName, apiVersion.Value, name, systemData.Value, properties.Value));
        }
 internal LivePipeline(string name, SystemData systemData, LivePipelineProperties properties)
 {
     Name       = name;
     SystemData = systemData;
     Properties = properties;
 }