toJSON method
Transforms this instance into a JSON object.
Implementation
@override
Map<String,dynamic> toJSON() {
final json = super.toJSON();
json['degreeOfMembership'] = degreeOfMembership;
json['representativeValue'] = representativeValue;
json['left'] = left;
json['right'] = right;
json['uuid'] = uuid;
return json;
}