BFF JSON import Entity from ’@/entities’; import { UserResponse } from ’@/api/responses’; class User extends Entity<UserResponse> { get canVote(): boolean { return this.props.age >= 18; } } class Entity<Props> { constructor(public props: Props) {} } entities/Entity.ts entities/User.ts