We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3bafe commit 4e7b12eCopy full SHA for 4e7b12e
README.md
@@ -304,17 +304,17 @@ import {Expose} from "class-transformer";
304
305
export class User {
306
307
- @Expose("uid")
+ @Expose({ name: "uid" })
308
id: number;
309
310
firstName: string;
311
312
lastName: string;
313
314
- @Expose("secretKey")
+ @Expose({ name: "secretKey" })
315
password: string;
316
317
- @Expose("fullName")
+ @Expose({ name: "fullName" })
318
getFullName() {
319
return this.firstName + " " + this.lastName;
320
}
0 commit comments