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