import{TransformOperationExecutor as o}from"./TransformOperationExecutor.js";import{defaultOptions as r}from"./constants/default-options.constant.js";import{TransformationType as t}from"./enums/transformation-type.enum.js";var n=function(){return(n=Object.assign||function(o){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=r[i]);return o}).apply(this,arguments)},i=function(){function i(){}return i.prototype.classToPlain=function(i,s){return new o(t.CLASS_TO_PLAIN,n(n({},r),s)).transform(void 0,i,void 0,void 0,void 0,void 0)},i.prototype.classToPlainFromExist=function(i,s,e){return new o(t.CLASS_TO_PLAIN,n(n({},r),e)).transform(s,i,void 0,void 0,void 0,void 0)},i.prototype.plainToClass=function(i,s,e){return new o(t.PLAIN_TO_CLASS,n(n({},r),e)).transform(void 0,s,i,void 0,void 0,void 0)},i.prototype.plainToClassFromExist=function(i,s,e){return new o(t.PLAIN_TO_CLASS,n(n({},r),e)).transform(i,s,void 0,void 0,void 0,void 0)},i.prototype.classToClass=function(i,s){return new o(t.CLASS_TO_CLASS,n(n({},r),s)).transform(void 0,i,void 0,void 0,void 0,void 0)},i.prototype.classToClassFromExist=function(i,s,e){return new o(t.CLASS_TO_CLASS,n(n({},r),e)).transform(s,i,void 0,void 0,void 0,void 0)},i.prototype.serialize=function(o,r){return JSON.stringify(this.classToPlain(o,r))},i.prototype.deserialize=function(o,r,t){var n=JSON.parse(r);return this.plainToClass(o,n,t)},i.prototype.deserializeArray=function(o,r,t){var n=JSON.parse(r);return this.plainToClass(o,n,t)},i}();export{i as ClassTransformer};
//# sourceMappingURL=ClassTransformer.js.map
