fromUser static method

CreateUser fromUser({
  1. required User user,
  2. String? decryptedPrivateKey,
})

Implementation

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