toJson method

Map<String, dynamic> toJson ()

Converts the HealthDataPoint to a json object

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['value'] = this.value;
  data['unit'] = this.unit;
  data['date_from'] = this.dateFrom;
  data['date_to'] = this.dateTo;
  data['data_type'] = this.type;
  data['platform_type'] = this.platform;
  return data;
}