getDeprecationInfo static method

DeprecationInfo? getDeprecationInfo(
  1. Map<String, dynamic>? annotations
)

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;
}