You can follow many threads explaining about that.
But you can use the solution without decorators.
import { BaseEntity } from "@guildadev/jsonapi-to-model";
export class User extends BaseEntity {
get name() {
return this.getAttribute("name");
}
}You can check the preview link on README.md