export default abstract class DataModel { abstract get data ( ) : any ; } export class GenericDataModel extends DataModel { constructor ( data ) { super ( ) ; Object . assign ( this , data ) ; } get data ( ) : GenericDataModel { return this ; } }