Decrypt the data with the pair.
data
pair
static Future<Object?> decrypt(Object data, KeyPair pair) => toFuture(SeaJsImpl.decrypt(dartToJs(data)!, pair)).then(jsToDart);