fromUser static method

ConnectedUser fromUser({
  1. required User user,
  2. String? privateKey,
})

Implementation

static ConnectedUser fromUser({required User user, String? privateKey}) {
  var connectedUser = ConnectedUser(privateKey: privateKey);
  connectedUser.did = user.did;
  connectedUser.profile = user.profile;
  connectedUser.name = user.name;
  connectedUser.about = user.about;
  connectedUser.verificationProof = user.verificationProof;
  connectedUser.publicKey = user.publicKey;
  connectedUser.msgSent = user.msgSent;
  connectedUser.maxMsgPersisted = user.maxMsgPersisted;
  connectedUser.wallets = user.wallets;
  connectedUser.encryptedPrivateKey = user.encryptedPrivateKey;
  return connectedUser;
}