import { JsonProperty , Serializable } from '../../src' ; import { Gender } from './gender' ; import { LivingBeing } from './living-being' ; @ Serializable ( ) export class Human extends LivingBeing { constructor ( @ JsonProperty ( ) public name , @ JsonProperty ( { name : 'humanId' , required : true } ) public id , @ JsonProperty ( ) public gender , /** The birth date of the employee (readonly) */ @ JsonProperty ( ) public readonly birthDate ) { super ( ) ; } }