toJson method
Implementation
Map<String, dynamic> toJson() => {
if (tools != null) 'tools': tools!.toJson(),
if (resources != null) 'resources': resources!.toJson(),
if (prompts != null) 'prompts': prompts!.toJson(),
if (logging != null) 'logging': logging!.toJson(),
if (completions != null) 'completions': completions!.toJson(),
if (experimental != null && experimental!.isNotEmpty) 'experimental': experimental,
if (tasks != null) 'tasks': tasks,
if (extensions != null && extensions!.isNotEmpty) 'extensions': extensions,
};