Create a new instance of a entity using constructor #14
Labels
blocked
Something is blocked
enhancement
New feature or request
hacktoberfest
help wanted
Extra attention is needed
severity-minor
Item is not urgent
Hello everyone!
Gotu has the FromJson method to create a new instance of an entity, but the constructor is more efficient to initialize a new instance from any input in json like this:
const user = new User({ ...input });
Can this be classified as an improvement?
The text was updated successfully, but these errors were encountered: