import i from"@arcgis/core/layers/support/InheritedDomain";import{checkArg as e}from"../utilities/checkArg.js";export var InheritedDomain;!function(n){function t(i,n){e("inheritedDomainJson",i).isNotMissing(),e("inheritedDomainJson.type",i.type).isNotMissing().satisfies((i=>"inherited"===i)),e("inheritedDomain",n).isNotMissing(),e("inheritedDomain.type",n.type).isNotMissing().satisfies((i=>"inherited"===i))}n.toEsriApiInheritedDomain=function(n){e("inheritedDomainJson",n).isNotMissing(),e("inheritedDomainJson.type",n.type).isNotMissing().satisfies((i=>"inherited"===i));const s=new i;return t(n,s),s},n.applyToEsriApiInheritedDomain=t,n.fromEsriApiInheritedDomain=function(i){return e("inheritedDomain",i).isNotMissing(),e("inheritedDomain.type",i.type).isNotMissing().satisfies((i=>"inherited"===i)),i.toJSON()}}(InheritedDomain||(InheritedDomain={}));