argos/dmp-frontend/src/app/models/dashboard/DashboardStatisticsModel.ts

16 lines
507 B
TypeScript

import { Serializable } from '../Serializable';
export class DashboardStatisticsModel implements Serializable<DashboardStatisticsModel> {
public totalDataManagementPlanCount: number;
public totalProjectCount: number;
public totalDataSetCount: number;
fromJSONObject(item: any): DashboardStatisticsModel {
this.totalDataManagementPlanCount = item.totalDataManagementPlanCount;
this.totalProjectCount = item.totalProjectCount;
this.totalDataSetCount = item.totalDataSetCount;
return this;
}
}