toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['did'] = did;
  data['wallets'] = wallets;
  data['publicKey'] = publicKey;
  data['encryptedPrivateKey'] = encryptedPrivateKey;
  data['verificationProof'] = verificationProof;
  data['msgSent'] = msgSent;
  data['maxMsgPersisted'] = maxMsgPersisted;
  if (profile != null) {
    data['profile'] = profile!.toJson();
  }
  return data;
}