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