DataPoint.fromJson constructor

DataPoint.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DataPoint.fromJson(Map<String, dynamic> json) {
  return DataPoint(
    timestamp: json['Timestamp'] as String?,
    value: json['Value'] as double?,
  );
}