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;
string familyName = FamilyName;
if (!string.IsNullOrEmpty(familyName))
obj["FamilyName"] = familyName;
string givenName = GivenName;
if (!string.IsNullOrEmpty(givenName))
obj["GivenName"] = givenName;
if (mMiddleNames.Count > 0)
{
JArray array = new JArray();
IEnumerable<string> middleNames = MiddleNames;
foreach (string name in middleNames)
array.Add(name);
obj["MiddleNames"] = array;
}
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;
}
}