ErrorCodeMethodNotFound.fromJson constructor

ErrorCodeMethodNotFound.fromJson(
  1. Object? value
)

Implementation

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