import { JsonProperty , Serializable } from '../../src' ; import { Animal } from './animal' ; @ Serializable ( ) export class Panther extends Animal { @ JsonProperty ( ) color : string ; constructor ( name , @ JsonProperty ( ) public isSpeckled ) { super ( name ) ; } }