import { JsonProperty , Serializable } from '../../src' ; import { Gender } from './gender' ; import { LivingBeing } from './living-being' ; import { Status } from './status' ; @ Serializable ( ) export class Animal extends LivingBeing { @ JsonProperty ( ) name : string ; @ JsonProperty ( ) birthDate : Date ; @ JsonProperty ( ) numberOfPaws : number ; @ JsonProperty ( ) gender : Gender ; @ JsonProperty ( 'childrenIdentifiers' ) childrenIds : Array < number > ; @ JsonProperty ( ) status : Status ; constructor ( name ) { super ( ) ; this . name = name ; } }