ClientResponseError.fromMap constructor

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

Implementation

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