mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-12 19:53:51 +00:00
12 lines
238 B
Dart
12 lines
238 B
Dart
class TimeSeriesData {
|
|
TimeSeriesData(
|
|
this.secondsSinceEpoch,
|
|
this.value,
|
|
);
|
|
|
|
final int secondsSinceEpoch;
|
|
DateTime get time =>
|
|
DateTime.fromMillisecondsSinceEpoch(secondsSinceEpoch * 1000);
|
|
final double value;
|
|
}
|