toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson() {
var result = <String, Object>{};
result['returnType'] = returnType;
result['createGetter'] = createGetter;
result['name'] = name;
result['parameters'] = parameters
.map((RefactoringMethodParameter value) => value.toJson())
.toList();
result['extractAll'] = extractAll;
return result;
}