DataPoint.fromJson constructor

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

Implementation

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