Skip to content

Create a new instance of a entity using constructor #14

@maikmb

Description

@maikmb

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions