protected virtual void Init()

in src/Sarif/Autogenerated/ExternalProperties.cs [290:553]


        protected virtual void Init(Uri schema, SarifVersion version, string guid, string runGuid, Conversion conversion, IEnumerable<Graph> graphs, PropertyBag externalizedProperties, IEnumerable<Artifact> artifacts, IEnumerable<Invocation> invocations, IEnumerable<LogicalLocation> logicalLocations, IEnumerable<ThreadFlowLocation> threadFlowLocations, IEnumerable<Result> results, IEnumerable<ToolComponent> taxonomies, ToolComponent driver, IEnumerable<ToolComponent> extensions, IEnumerable<ToolComponent> policies, IEnumerable<ToolComponent> translations, IEnumerable<Address> addresses, IEnumerable<WebRequest> webRequests, IEnumerable<WebResponse> webResponses, IDictionary<string, SerializedPropertyInfo> properties)
        {
            if (schema != null)
            {
                Schema = new Uri(schema.OriginalString, schema.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
            }

            Version = version;
            Guid = guid;
            RunGuid = runGuid;
            if (conversion != null)
            {
                Conversion = new Conversion(conversion);
            }

            if (graphs != null)
            {
                var destination_0 = new List<Graph>();
                foreach (var value_0 in graphs)
                {
                    if (value_0 == null)
                    {
                        destination_0.Add(null);
                    }
                    else
                    {
                        destination_0.Add(new Graph(value_0));
                    }
                }

                Graphs = destination_0;
            }

            if (externalizedProperties != null)
            {
                ExternalizedProperties = new PropertyBag(externalizedProperties);
            }

            if (artifacts != null)
            {
                var destination_1 = new List<Artifact>();
                foreach (var value_1 in artifacts)
                {
                    if (value_1 == null)
                    {
                        destination_1.Add(null);
                    }
                    else
                    {
                        destination_1.Add(new Artifact(value_1));
                    }
                }

                Artifacts = destination_1;
            }

            if (invocations != null)
            {
                var destination_2 = new List<Invocation>();
                foreach (var value_2 in invocations)
                {
                    if (value_2 == null)
                    {
                        destination_2.Add(null);
                    }
                    else
                    {
                        destination_2.Add(new Invocation(value_2));
                    }
                }

                Invocations = destination_2;
            }

            if (logicalLocations != null)
            {
                var destination_3 = new List<LogicalLocation>();
                foreach (var value_3 in logicalLocations)
                {
                    if (value_3 == null)
                    {
                        destination_3.Add(null);
                    }
                    else
                    {
                        destination_3.Add(new LogicalLocation(value_3));
                    }
                }

                LogicalLocations = destination_3;
            }

            if (threadFlowLocations != null)
            {
                var destination_4 = new List<ThreadFlowLocation>();
                foreach (var value_4 in threadFlowLocations)
                {
                    if (value_4 == null)
                    {
                        destination_4.Add(null);
                    }
                    else
                    {
                        destination_4.Add(new ThreadFlowLocation(value_4));
                    }
                }

                ThreadFlowLocations = destination_4;
            }

            if (results != null)
            {
                var destination_5 = new List<Result>();
                foreach (var value_5 in results)
                {
                    if (value_5 == null)
                    {
                        destination_5.Add(null);
                    }
                    else
                    {
                        destination_5.Add(new Result(value_5));
                    }
                }

                Results = destination_5;
            }

            if (taxonomies != null)
            {
                var destination_6 = new List<ToolComponent>();
                foreach (var value_6 in taxonomies)
                {
                    if (value_6 == null)
                    {
                        destination_6.Add(null);
                    }
                    else
                    {
                        destination_6.Add(new ToolComponent(value_6));
                    }
                }

                Taxonomies = destination_6;
            }

            if (driver != null)
            {
                Driver = new ToolComponent(driver);
            }

            if (extensions != null)
            {
                var destination_7 = new List<ToolComponent>();
                foreach (var value_7 in extensions)
                {
                    if (value_7 == null)
                    {
                        destination_7.Add(null);
                    }
                    else
                    {
                        destination_7.Add(new ToolComponent(value_7));
                    }
                }

                Extensions = destination_7;
            }

            if (policies != null)
            {
                var destination_8 = new List<ToolComponent>();
                foreach (var value_8 in policies)
                {
                    if (value_8 == null)
                    {
                        destination_8.Add(null);
                    }
                    else
                    {
                        destination_8.Add(new ToolComponent(value_8));
                    }
                }

                Policies = destination_8;
            }

            if (translations != null)
            {
                var destination_9 = new List<ToolComponent>();
                foreach (var value_9 in translations)
                {
                    if (value_9 == null)
                    {
                        destination_9.Add(null);
                    }
                    else
                    {
                        destination_9.Add(new ToolComponent(value_9));
                    }
                }

                Translations = destination_9;
            }

            if (addresses != null)
            {
                var destination_10 = new List<Address>();
                foreach (var value_10 in addresses)
                {
                    if (value_10 == null)
                    {
                        destination_10.Add(null);
                    }
                    else
                    {
                        destination_10.Add(new Address(value_10));
                    }
                }

                Addresses = destination_10;
            }

            if (webRequests != null)
            {
                var destination_11 = new List<WebRequest>();
                foreach (var value_11 in webRequests)
                {
                    if (value_11 == null)
                    {
                        destination_11.Add(null);
                    }
                    else
                    {
                        destination_11.Add(new WebRequest(value_11));
                    }
                }

                WebRequests = destination_11;
            }

            if (webResponses != null)
            {
                var destination_12 = new List<WebResponse>();
                foreach (var value_12 in webResponses)
                {
                    if (value_12 == null)
                    {
                        destination_12.Add(null);
                    }
                    else
                    {
                        destination_12.Add(new WebResponse(value_12));
                    }
                }

                WebResponses = destination_12;
            }

            if (properties != null)
            {
                Properties = new Dictionary<string, SerializedPropertyInfo>(properties);
            }
        }