import { Model , model , property } from '@loopback/repository' ; @ model ( ) export class ValueResponse extends Model { @ property ( { type : 'number' , jsonSchema : { nullable : true , } , } ) currValue ? : number ; @ property ( { type : 'number' , jsonSchema : { nullable : true , } , } ) oldValue ? : number ; constructor ( data ? ) { super ( data ) ; this . currValue = data ?. currValue ; this . oldValue = data ?. oldValue ; } }