Skip to content

Commit

Permalink
docs: deserializers
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaticus authored Nov 24, 2024
1 parent 62dece6 commit 3f562d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ serializeIncludedResourceObjects(user1, ['accounts', 'spouse']);
### Deserializers

### Resource Object
The `serializeResourceObject(classInstance: object)` function will produce a [resource object](https://jsonapi.org/format/#document-resource-objects) from a decorated class instance.
The `deserializeResourceObject(resourceObject: JSONAPIResourceObject, cls: new (..._: any[]) => any)` function will produce a class instance from a [resource object](https://jsonapi.org/format/#document-resource-objects).

ex.
```typescript
Expand Down

0 comments on commit 3f562d9

Please sign in to comment.