User.fromJson constructor

User.fromJson(
  1. Map<String, dynamic> json
)

Implementation

User.fromJson(Map<String, dynamic> json) {
  did = json['did'];
  wallets = json['wallets'];
  publicKey = json['publicKey'];
  encryptedPrivateKey = json['encryptedPrivateKey'];
  verificationProof = json['verificationProof'];
  msgSent = json['msgSent'];
  maxMsgPersisted = json['maxMsgPersisted'];
  profile =
      json['profile'] != null ? UserProfile.fromJson(json['profile']) : null;
}