toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson() {
var result = <String, Object>{};
result['message'] = message;
result['edits'] =
edits.map((SourceFileEdit value) => value.toJson()).toList();
result['linkedEditGroups'] = linkedEditGroups
.map((LinkedEditGroup value) => value.toJson())
.toList();
var selection = this.selection;
if (selection != null) {
result['selection'] = selection.toJson();
}
var selectionLength = this.selectionLength;
if (selectionLength != null) {
result['selectionLength'] = selectionLength;
}
var id = this.id;
if (id != null) {
result['id'] = id;
}
return result;
}