Skip to content

fromJSON() should initialize field values accordingly to the entity. #29

@m7vicente

Description

@m7vicente

When created an entity instance using fromJSON() method, in some cases, the entire json object has all attributes defined as string, but these values are not ignored by fromJSON(), they just set these values in the created instance.

Since parse function in fromJSON can create BaseEntity and Dates from string types it's possible to parse Numbers and strings accordingly to the definition in the entity.

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