toJson method
Implementation
Map<String, dynamic> toJson() {
final encryptionAtRest = this.encryptionAtRest;
final encryptionInTransit = this.encryptionInTransit;
return {
if (encryptionAtRest != null) 'encryptionAtRest': encryptionAtRest,
if (encryptionInTransit != null)
'encryptionInTransit': encryptionInTransit,
};
}