toJson method

Map<String, dynamic> toJson(
  1. Map<Identifier, int> identifiers,
  2. Map<String, int> uris,
  3. Map<Constant, int> constants
)

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(),
    };