protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
{
base.setJSON(obj, host, processed);
string name = Name;
if (!string.IsNullOrEmpty(name))
obj["Name"] = name;
string description = Description;
if (!string.IsNullOrEmpty(description))
obj["Description"] = description;
List<IfcRepresentation> representations = Representations;
JArray jreps = new JArray();
foreach (IfcRepresentation rep in representations)
{
jreps.Add(rep.getJson(this, processed));
// if(rep.OfProductRepresentation.Count == 1)
// {
//ofshaperep
// }
}
obj["Representations"] = jreps;
}