toJson method
Implementation
@override
Map<String, Object?> toJson(
Map<Constant, int> constants,
Map<Location, int> locations,
) => {
_constantKey: constants[instanceConstant]!,
...super.toJson(constants, locations),
};
@override
Map<String, Object?> toJson(
Map<Constant, int> constants,
Map<Location, int> locations,
) => {
_constantKey: constants[instanceConstant]!,
...super.toJson(constants, locations),
};