ErrorCodeInvalidParams.fromJson constructor

ErrorCodeInvalidParams.fromJson(
  1. Object? value
)

Implementation

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