toJson method
Implementation
Map<String, Object?> toJson() {
var relationData = this.relationData;
var source = this.source;
var target = this.target;
final json = <String, Object?>{};
if (relationData != null) {
json[r'relationData'] = relationData;
}
if (source != null) {
json[r'source'] = source;
}
if (target != null) {
json[r'target'] = target;
}
return json;
}