toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'nodes': nodes.map((e) => e.toJson()).toList(),
'startTime': startTime,
'endTime': endTime,
if (samples != null) 'samples': [...?samples],
if (timeDeltas != null) 'timeDeltas': [...?timeDeltas],
};
}