UserV2.fromJson constructor

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

Implementation

factory UserV2.fromJson(Map<String, dynamic> json) {
  return UserV2(
    msgSent: json['msgSent'],
    maxMsgPersisted: json['maxMsgPersisted'],
    did: json['did'],
    wallets: json['wallets'],
    profile: UserProfile.fromJson(json['profile']),
    encryptedPrivateKey: json['encryptedPrivateKey'],
    publicKey: json['publicKey'],
    verificationProof: json['verificationProof'],
    origin: json['origin'],
  );
}