toJson method
Implementation
Map<String, dynamic> toJson() {
final constantInitializationVector = this.constantInitializationVector;
final encryptionMethod = this.encryptionMethod;
final initializationVectorInManifest = this.initializationVectorInManifest;
final offlineEncrypted = this.offlineEncrypted;
final spekeKeyProvider = this.spekeKeyProvider;
final staticKeyProvider = this.staticKeyProvider;
final type = this.type;
return {
if (constantInitializationVector != null)
'constantInitializationVector': constantInitializationVector,
if (encryptionMethod != null)
'encryptionMethod': encryptionMethod.toValue(),
if (initializationVectorInManifest != null)
'initializationVectorInManifest':
initializationVectorInManifest.toValue(),
if (offlineEncrypted != null)
'offlineEncrypted': offlineEncrypted.toValue(),
if (spekeKeyProvider != null) 'spekeKeyProvider': spekeKeyProvider,
if (staticKeyProvider != null) 'staticKeyProvider': staticKeyProvider,
if (type != null) 'type': type.toValue(),
};
}