ToolKindSwitchMode.fromJson constructor

ToolKindSwitchMode.fromJson(
  1. Object? value
)

Implementation

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