core.Map<core.String, core.dynamic> toJson() => { if (knowledgeBases != null) 'knowledgeBases': knowledgeBases!, };