AgentResponseResult.fromMap constructor
Implementation
factory AgentResponseResult.fromMap(Map<Object?, Object?> value) {
final decoded = AgentResponse.fromMap(value);
if (decoded is! AgentResponseResult) {
throw const AcpWireDecodeException('Expected AgentResponseResult.');
}
return decoded;
}