Map<String, dynamic> toJson() { return { 'path': path, 'key': key, 'value': value, 'matchType': matchType.toString(), }; }