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