Skip to content
Snippets Groups Projects
Commit 1874f684 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: Measurement class, app

parent 16a20670
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,14 @@ class Measurement {
int timeMeasured;
Sensor sensor;
List<Data> dataList;
List<Corner> cornerList;
Measurement({
required this.measurementID,
required this.timeMeasured,
required this.sensor,
required this.dataList,
required this.cornerList,
});
factory Measurement.Measurement(Map<String, dynamic> json) {
......@@ -19,6 +21,9 @@ class Measurement {
dataList: (json['Data'] as List<dynamic>)
.map((data) => Data.fromJson(data))
.toList(),
cornerList: (json['Corner'] as List<dynamic>)
.map((data) => Corner.fromJson(data))
.toList(),
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment