BridgeSession constructor

BridgeSession({
  1. Map<String, dynamic>? stored,
})

Implementation

BridgeSession({Map<String, dynamic>? stored}) {
  sessionCrypto = stored != null && stored.containsKey('session_private_key')
      ? SessionCrypto(pk: stored['session_private_key'])
      : SessionCrypto();
  walletPublicKey = stored?['wallet_public_key'];
  bridgeUrl = stored?['bridge_url'];
}