protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed) { base.setJSON(obj, host, processed); obj["OuterBoundary"] = OuterBoundary.getJson(this, processed); if (mInnerBoundaries.Count > 0) { obj["InnerBoundaries"] = new JArray(InnerBoundaries.ToList().ConvertAll(x => x.getJson(this, processed))); } }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["OuterBoundary"] = OuterBoundary.getJson(this, options); if (mInnerBoundaries.Count > 0) { obj["InnerBoundaries"] = new JArray(InnerBoundaries.ToList().ConvertAll(x => x.getJson(this, options))); } }