/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../geometry","../../Graphic","../../core/JSONSupport","../../core/maybe","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/reader","../../core/accessorSupport/decorators/subclass","../../core/accessorSupport/decorators/writer","../../geometry/support/typeUtils"],(function(e,r,t,o,a,p,s,u,c,i,y,n,l,d){"use strict";let m=function(r){function t(e){var t;return(t=r.call(this,e)||this).displayFieldName=null,t.feature=null,t.layerId=null,t.layerName=null,t}e._inheritsLoose(t,r);var a=t.prototype;return a.readFeature=function(e,r){return o.fromJSON({attributes:{...r.attributes},geometry:{...r.geometry}})},a.writeFeature=function(e,r){if(!e)return;const{attributes:t,geometry:o}=e;t&&(r.attributes={...t}),p.isSome(o)&&(r.geometry=o.toJSON(),r.geometryType=d.typeKebabDictionary.toJSON(o.type))},t}(a.JSONSupport);r.__decorate([s.property({type:String,json:{write:!0}})],m.prototype,"displayFieldName",void 0),r.__decorate([s.property({type:o})],m.prototype,"feature",void 0),r.__decorate([y.reader("feature",["attributes","geometry"])],m.prototype,"readFeature",null),r.__decorate([l.writer("feature")],m.prototype,"writeFeature",null),r.__decorate([s.property({type:Number,json:{write:!0}})],m.prototype,"layerId",void 0),r.__decorate([s.property({type:String,json:{write:!0}})],m.prototype,"layerName",void 0),m=r.__decorate([n.subclass("esri.rest.support.IdentifyResult")],m);return m}));
