Converts this Callback to a JSON object.
Map<String, dynamic> toJson() { return {expression: path.toJson()}; }