toJson method
Implementation
Map<String, dynamic> toJson(
Map<Identifier, int> identifiers,
Map<String, int> uris,
Map<Constant, int> constants,
) =>
{
'definition': definition.toJson(identifiers, uris),
'references': references.map((x) => x.toJson(uris, constants)).toList(),
};