mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-14 20:53:16 +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;
|
|
}
|