ToolKindFetch.fromJson constructor

ToolKindFetch.fromJson(
  1. Object? value
)

Implementation

factory ToolKindFetch.fromJson(Object? value) {
  final decoded = ToolKind.fromJson(value);
  if (decoded is! ToolKindFetch) {
    throw const AcpWireDecodeException('Expected ToolKindFetch.');
  }
  return decoded;
}