toJson method

  1. @override
Map<String, Object> toJson({
  1. ClientUriConverter? clientUriConverter,
})

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();
  var selection = this.selection;
  if (selection != null) {
    result['selection'] =
        selection.toJson(clientUriConverter: clientUriConverter);
  }
  var selectionLength = this.selectionLength;
  if (selectionLength != null) {
    result['selectionLength'] = selectionLength;
  }
  var id = this.id;
  if (id != null) {
    result['id'] = id;
  }
  return result;
}