toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{
'name': name,
'description': description,
'inputSchema': inputSchema,
};
if (title != null) json['title'] = title;
if (outputSchema != null) json['outputSchema'] = outputSchema;
if (icons != null) json['icons'] = icons;
if (meta != null) json['_meta'] = meta;
if (supportsProgress == true) json['supportsProgress'] = supportsProgress;
if (supportsCancellation == true) json['supportsCancellation'] = supportsCancellation;
if (metadata != null) json['metadata'] = metadata!;
return json;
}