We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6bd5e9e + 406c14a commit 66a0dccCopy full SHA for 66a0dcc
README.md
@@ -224,14 +224,14 @@ You can deserialize your model to from a json using `deserialize` method:
224
225
```typescript
226
import {deserialize} from "class-transformer";
227
-let photo = deserialize(photo);
+let photo = deserialize(Photo, photo);
228
```
229
230
To make deserialization to work with arrays use `deserializeArray` method:
231
232
233
import {deserializeArray} from "class-transformer";
234
-let photos = deserializeArray(photos);
+let photos = deserializeArray(Photo, photos);
235
236
237
## Working with nested objects
0 commit comments