protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
{
base.setJSON(obj, host, processed);
string identification = Identification;
if (!string.IsNullOrEmpty(identification))
obj["Identification"] = identification;
obj["Name"] = Name;
string description = Description;
if (!string.IsNullOrEmpty(description))
obj["Description"] = description;
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;
}
List<IfcAddress> addresses = Addresses;
if(addresses.Count > 0)
{
JArray array = new JArray();
foreach (IfcAddress address in addresses)
array.Add(address.getJson(this, processed));
obj["Addresses"] = array;
}
}