@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 662 B
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import"../../core/has.js";import e from"./CodedValueDomain.js";import r from"./Domain.js";import o from"./InheritedDomain.js";import n from"./RangeDomain.js";const t={key:"type",base:r,typeMap:{range:n,"coded-value":e,inherited:o}};function a(r){if(!r?.type)return null;switch(r.type){case"range":return n.fromJSON(r);case"codedValue":return e.fromJSON(r);case"inherited":return o.fromJSON(r)}return null}export{e as CodedValueDomain,r as DomainBase,o as InheritedDomain,n as RangeDomain,a as fromJSON,t as types};