import { StoreModel } from "../../../models/StoreModel" ; /**
 * Thin wrapper of Immutable data around a single model
 * **/ export class TodoModel extends StoreModel { constructor ( data = { } ) { super ( data ) ; } public setModelKey ( key , value ) { return this . setData ( TodoModel , this . _data . set ( key , value ) ) as TodoModel ; } public setModelId ( id ) { return this . setKey < TodoModel > ( TodoModel , 'modelId' , id ) ; } public getModelId ( ) { return this . getKey ( 'modelId' ) ; } invalidateTodoId ( i_id = - 1 ) { return this . setKey < TodoModel > ( TodoModel , 'modelId' , i_id ) ; } }