Skip to content

feat: JSON property order #281

Open
Open
@splincode

Description

@splincode
@PropertyOrder([ 'id', 'password', 'email' ])
export class User {
   email: string;
   id: number;
   password: string;
}

plainToClass(User, jsonData) // User { id: 1, password: 'xxx', email: 'etc@email.com' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions