toJson method

Map<String, dynamic> toJson()

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],
  };
}