mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-05 08:23:12 +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;
|
|
}
|