GeometryGym.Ifc.IfcPersonAndOrganization.setJSON C# (CSharp) Méthode

setJSON() protected méthode

protected setJSON ( Newtonsoft.Json.Linq.JObject obj, BaseClassIfc host, HashSet processed ) : void
obj Newtonsoft.Json.Linq.JObject
host BaseClassIfc
processed HashSet
Résultat void
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
        {
            base.setJSON(obj, host, processed);
            obj["ThePerson"] = ThePerson.getJson(this, processed);
            obj["TheOrganization"] = TheOrganization.getJson(this, processed);
            List<IfcActorRole> roles = Roles;
            if (roles.Count > 0)
            {
                JArray array = new JArray();
                foreach (IfcActorRole role in roles)
                    array.Add(role.getJson(this, processed));
                obj["Roles"] = array;
            }
        }