// basicProperty keeps the same name assert.equal(deserialized.basicProperty, ['value', 'value2']); // extName became renamedProperty assert.equal(deserialized.renamedProperty, [123, 456]); // customProperty became custom, and the string was converted to number assert.equal(deserialized.custom, [456, 789]);
constbackendObjectSerialized = mapper.serialize(deserialized); // reverse conversion was performed assert.deepEqual(backendObjectSerialized, backendObject);
The basic decorator for array of simple properties.
params
has the same meaning that the one in JsonProperty.Usage examples: