toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson() {
var result = <String, Object>{};
result['classElement'] = classElement.toJson();
var displayName = this.displayName;
if (displayName != null) {
result['displayName'] = displayName;
}
var memberElement = this.memberElement;
if (memberElement != null) {
result['memberElement'] = memberElement.toJson();
}
var superclass = this.superclass;
if (superclass != null) {
result['superclass'] = superclass;
}
result['interfaces'] = interfaces;
result['mixins'] = mixins;
result['subclasses'] = subclasses;
return result;
}