protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);
            obj["ThePerson"]       = ThePerson.getJson(this, options);
            obj["TheOrganization"] = TheOrganization.getJson(this, options);
            LIST <IfcActorRole> roles = Roles;

            if (roles.Count > 0)
            {
                JArray array = new JArray();
                foreach (IfcActorRole role in roles)
                {
                    array.Add(role.getJson(this, options));
                }
                obj["Roles"] = array;
            }
        }
Exemple #2
0
        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);
            ReadOnlyCollection <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;
            }
        }