toJson method
Converts a CSINodeSpec instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempDrivers = drivers;
jsonData['drivers'] =
tempDrivers.map((e) => e.toJson()).toList(growable: false);
return jsonData;
}