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