toJson method
Returns this object in JSON format.
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'label': label,
'cd': cd,
'inDegree': inDegree,
'outDegree': outDegree,
'instability': instability,
'sloc': sloc
};