toJson method
Implementation
Map<String, dynamic> toJson() => {
'name': name,
'returnType': returnType,
'description': description,
'isStatic': isStatic,
'isAbstract': isAbstract,
'isAsync': isAsync,
'isGetter': isGetter,
'isSetter': isSetter,
'parameters': parameters.map((p) => p.toJson()).toList(),
'codeExamples': codeExamples.map((c) => c.toJson()).toList(),
'links': links.map((l) => l.toJson()).toList(),
};