toJson method

  1. @override
Map<String, Object> toJson()

Returns a JSON presentation of the object.

Implementation

@override
Map<String, Object> toJson() {
  var result = <String, Object>{};
  result['file'] = file;
  result['offset'] = offset;
  result['maxResults'] = maxResults;
  var completionCaseMatchingMode = this.completionCaseMatchingMode;
  if (completionCaseMatchingMode != null) {
    result['completionCaseMatchingMode'] =
        completionCaseMatchingMode.toJson();
  }
  var completionMode = this.completionMode;
  if (completionMode != null) {
    result['completionMode'] = completionMode.toJson();
  }
  var invocationCount = this.invocationCount;
  if (invocationCount != null) {
    result['invocationCount'] = invocationCount;
  }
  var timeout = this.timeout;
  if (timeout != null) {
    result['timeout'] = timeout;
  }
  return result;
}