getDeprecationInfo static method
Get deprecation information
Implementation
static DeprecationInfo? getDeprecationInfo(Map<String, dynamic>? annotations) {
final deprecated = annotations?[ToolAnnotationKeys.deprecated];
if (deprecated is Map<String, dynamic>) {
return DeprecationInfo.fromJson(deprecated);
}
return null;
}