-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(baseModel): adding serialize to offload work from toJSON method
The toJSON method is meant to be overwritten for having custom serialize behavior. However, re-writing the entire logic of serialize is not desired, that's why we move all the logic to serialize method and to toJSON works as an alias by default
- Loading branch information
1 parent
8009256
commit be37cfb
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters