Converts the operation to a JSON-encodable Map.
@override Map toJson() => { 'op': name, 'path': path.toString(), 'value': value, };