restore method

  1. @override
Future<void> restore()
override

Implementation

@override
Future<void> restore() async {
  pairingStrings = WalletConnectUtils.convertMapTo<String>(
    core.storage.get(storageKey),
  );
  for (var entry in pairingStrings.entries) {
    pairings[entry.key] = PairingInfo.fromJson(
      jsonDecode(entry.value),
    );
  }
}