I have that class.
Article {
@Expose({ name: "_id", toClassOnly: true })
private id: string;
}
In comming Json:
I have _id, but I have to return in response Json id, like
Function: classToPlain(article) returns that json:
but when I view variable article, structure are correct.
Why function classToPlain ignoring @Expose({ name: "_id", toClassOnly: true })