/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as r}from"tslib";import o from"../../../Color.js";import{JSONSupport as e}from"../../../core/JSONSupport.js";import{property as t,subclass as l}from"../../../core/accessorSupport/decorators.js";import{Integer as s}from"../../../core/accessorSupport/ensureType.js";import{writer as p}from"../../../core/accessorSupport/decorators/writer.js";var i;let u=i=class extends e{constructor(r){super(r),this.color=null,this.label=null,this.value=null}writeValue(r,o,e){o[e]=r??0}clone(){return new i({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};r([t({type:o,json:{type:[s],write:{isRequired:!0}}})],u.prototype,"color",void 0),r([t({type:String,json:{write:!0}})],u.prototype,"label",void 0),r([t({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"value",void 0),r([p("value")],u.prototype,"writeValue",null),u=i=r([l("esri.renderers.visualVariables.support.ColorStop")],u);const a=u;export{a as default};
