toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final constantInitializationVector = this.constantInitializationVector;
  final encryptionMethod = this.encryptionMethod;
  final initializationVectorInManifest = this.initializationVectorInManifest;
  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 (spekeKeyProvider != null) 'spekeKeyProvider': spekeKeyProvider,
    if (staticKeyProvider != null) 'staticKeyProvider': staticKeyProvider,
    if (type != null) 'type': type.toValue(),
  };
}