internal static SpatialAnalysisPersonZoneCrossingZoneEvents DeserializeSpatialAnalysisPersonZoneCrossingZoneEvents(JsonElement element) { NamedPolygonBase zone = default; Optional <IList <SpatialAnalysisPersonZoneCrossingEvent> > events = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("zone")) { zone = NamedPolygonBase.DeserializeNamedPolygonBase(property.Value); continue; } if (property.NameEquals("events")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List <SpatialAnalysisPersonZoneCrossingEvent> array = new List <SpatialAnalysisPersonZoneCrossingEvent>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(SpatialAnalysisPersonZoneCrossingEvent.DeserializeSpatialAnalysisPersonZoneCrossingEvent(item)); } events = array; continue; } } return(new SpatialAnalysisPersonZoneCrossingZoneEvents(zone, Optional.ToList(events))); }
public SpatialAnalysisPersonCountZoneEvents(NamedPolygonBase zone) { if (zone == null) { throw new ArgumentNullException(nameof(zone)); } Zone = zone; Events = new ChangeTrackingList <SpatialAnalysisPersonCountEvent>(); }
internal SpatialAnalysisPersonCountZoneEvents(NamedPolygonBase zone, IList <SpatialAnalysisPersonCountEvent> events) { Zone = zone; Events = events; }
internal SpatialAnalysisPersonZoneCrossingZoneEvents(NamedPolygonBase zone, IList <SpatialAnalysisPersonZoneCrossingEvent> events) { Zone = zone; Events = events; }