Map<String, dynamic> toJson() => { if (enabled != null) 'enabled': enabled, if (allowedTools != null) 'allowed_tools': allowedTools, };