import { IModel , Model } from './model.model' ; /**
 * Stats interface
 */ export interface IStats extends IModel { projects ? : number ; users ? : number ; pings ? : number ; events ? : number ; } /**
 * Stats model
 */ export class StatsModel extends Model < IStats > implements IStats { projects ? : number ; users ? : number ; pings ? : number ; events ? : number ; param data constructor ( data ? ) { super ( ) ; this . projects = data && data . projects ? data . projects : 0 ; this . users = data && data . users ? data . users : 0 ; this . pings = data && data . pings ? data . pings : 0 ; this . events = data && data . events ? data . events : 0 ; } /**
     * Method to convert model to data
     */ toData ( ) { return { projects : this . projects , users : this . users , pings : this . pings , events : this . events , } ; } }