UNPKG

415 BPlain TextView Raw
1import {Date, DateWrapper} from 'angular2/src/facade/lang';
2import {Map} from 'angular2/src/facade/collection';
3
4export class MeasureValues {
5 constructor(public runIndex: number, public timeStamp: Date,
6 public values: {[key: string]: any}) {}
7
8 toJson() {
9 return {
10 'timeStamp': DateWrapper.toJson(this.timeStamp),
11 'runIndex': this.runIndex,
12 'values': this.values
13 };
14 }
15}