import { GeoUnitDefinition , HierarchyDefinition , GeoUnitHierarchy , IStaticMetadata } from "../../../../shared/entities" ; import { GeoUnitTopology } from "./geo-unit-topology.entity" ; export class GeoUnitProperties { public readonly hierarchy : ReadonlyArray < GeoUnitHierarchy > ; static fromTopology ( geoUnitTopology ) { return new GeoUnitProperties ( geoUnitTopology . definition , geoUnitTopology . hierarchyDefinition , geoUnitTopology . staticMetadata , geoUnitTopology . topologyProperties ) ; } private constructor ( public readonly definition , public readonly hierarchyDefinition , public readonly staticMetadata , public readonly topologyProperties ) { } }