/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as r}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as o,subclass as t}from"../../core/accessorSupport/decorators.js";import{ensureType as s}from"../../core/accessorSupport/ensureType.js";import p from"../../geometry/Polyline.js";import{fromJSON as i}from"../../geometry/support/jsonUtils.js";let n=class extends e{constructor(r){super(r),this.extendHow="default-curve-extension",this.polylines=null,this.trimExtendTo=null}};r([o({type:String,json:{write:!0}})],n.prototype,"extendHow",void 0),r([o({type:[p],json:{read:{reader:r=>r?r.map(r=>i(r)):null},write:{writer:(r,e)=>{e.polylines=r.map(r=>r.toJSON())}}}})],n.prototype,"polylines",void 0),r([o({type:p,json:{read:{reader:r=>r?i(r):null},write:{writer:(r,e)=>{e.trimExtendTo=r.toJSON()}}}})],n.prototype,"trimExtendTo",void 0),n=r([t("esri.rest.support.TrimExtendParameters")],n),n.from=s(n);const l=n;export{l as default};
