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