ClientResponseResult.fromMap constructor

ClientResponseResult.fromMap(
  1. Map<Object?, Object?> value
)

Implementation

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