ErrorCodeRequestCancelled.fromJson constructor

ErrorCodeRequestCancelled.fromJson(
  1. Object? value
)

Implementation

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