internal MediaGraphTopologySetRequestBody(string methodName, string apiVersion, string name, MediaGraphSystemData systemData, MediaGraphTopologyProperties properties) : base(methodName, apiVersion)
 {
     Name       = name;
     SystemData = systemData;
     Properties = properties;
     MethodName = methodName ?? "MediaGraphTopologySetRequestBody";
 }
        internal static MediaGraphTopologySetRequestBody DeserializeMediaGraphTopologySetRequestBody(JsonElement element)
        {
            string name = default;
            Optional <MediaGraphSystemData>         systemData = default;
            Optional <MediaGraphTopologyProperties> 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 = MediaGraphSystemData.DeserializeMediaGraphSystemData(property.Value);
                    continue;
                }
                if (property.NameEquals("properties"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    properties = MediaGraphTopologyProperties.DeserializeMediaGraphTopologyProperties(property.Value);
                    continue;
                }
                if (property.NameEquals("methodName"))
                {
                    methodName = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("@apiVersion"))
                {
                    apiVersion = property.Value.GetString();
                    continue;
                }
            }
            return(new MediaGraphTopologySetRequestBody(methodName, apiVersion.Value, name, systemData.Value, properties.Value));
        }
 internal MediaGraphTopology(string name, MediaGraphSystemData systemData, MediaGraphTopologyProperties properties)
 {
     Name       = name;
     SystemData = systemData;
     Properties = properties;
 }