{"ScriptPreparationCode":"var voucher = {\r\n \u0022single\u0022: false,\r\n \u0022applyOverTaxes\u0022: false,\r\n \u0022discountType\u0022: \u00221\u0022,\r\n \u0022value\u0022: 100,\r\n \u0022minimumAmount\u0022: 0,\r\n \u0022quantity\u0022: 1,\r\n \u0022suffixLength\u0022: 8,\r\n \u0022code\u0022: \u0022IF5R0AFX\u0022,\r\n \u0022vertical\u0022: [],\r\n \u0022allowedPaymentMethods\u0022: [],\r\n \u0022allowedBanks\u0022: [],\r\n \u0022types\u0022: [],\r\n \u0022partners\u0022: [],\r\n \u0022startDate\u0022: \u00222020-10-21T00:00:00.000Z\u0022,\r\n \u0022endDate\u0022: \u00222020-10-21T00:00:00.000Z\u0022,\r\n \u0022applyed\u0022: false\r\n}\r\n\r\n","TestCases":[{"Name":"Lodash cloneDeep","Code":"const copy = _.cloneDeep(voucher);","IsDeferred":false},{"Name":"Spread operator","Code":"const copy = { ...voucher };","IsDeferred":false},{"Name":"Json Parse","Code":"const copy = JSON.parse(JSON.stringify(voucher));","IsDeferred":false}]}