toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (publicKey != null) {
    json[r'publicKey'] = publicKey;
  }
  json[r'hcPartyKeys'] = hcPartyKeys;
  json[r'privateKeyShamirPartitions'] = privateKeyShamirPartitions;
  json[r'secretForeignKeys'] = secretForeignKeys;
  json[r'cryptedForeignKeys'] = cryptedForeignKeys;
  json[r'delegations'] = delegations;
  json[r'encryptionKeys'] = encryptionKeys;
  json[r'aesExchangeKeys'] = aesExchangeKeys;
  json[r'transferKeys'] = transferKeys;
  if (encryptedSelf != null) {
    json[r'encryptedSelf'] = encryptedSelf;
  }
  return json;
}