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['offset'] = offset;
  result['length'] = length;
  var containingLibraryPath = this.containingLibraryPath;
  if (containingLibraryPath != null) {
    result['containingLibraryPath'] = containingLibraryPath;
  }
  var containingLibraryName = this.containingLibraryName;
  if (containingLibraryName != null) {
    result['containingLibraryName'] = containingLibraryName;
  }
  var containingClassDescription = this.containingClassDescription;
  if (containingClassDescription != null) {
    result['containingClassDescription'] = containingClassDescription;
  }
  var dartdoc = this.dartdoc;
  if (dartdoc != null) {
    result['dartdoc'] = dartdoc;
  }
  var elementDescription = this.elementDescription;
  if (elementDescription != null) {
    result['elementDescription'] = elementDescription;
  }
  var elementKind = this.elementKind;
  if (elementKind != null) {
    result['elementKind'] = elementKind;
  }
  var isDeprecated = this.isDeprecated;
  if (isDeprecated != null) {
    result['isDeprecated'] = isDeprecated;
  }
  var parameter = this.parameter;
  if (parameter != null) {
    result['parameter'] = parameter;
  }
  var propagatedType = this.propagatedType;
  if (propagatedType != null) {
    result['propagatedType'] = propagatedType;
  }
  var staticType = this.staticType;
  if (staticType != null) {
    result['staticType'] = staticType;
  }
  return result;
}