toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final encryptionAlgorithm = this.encryptionAlgorithm;
  final hashAlgorithm = this.hashAlgorithm;
  return {
    if (encryptionAlgorithm != null)
      'encryptionAlgorithm': encryptionAlgorithm.toValue(),
    if (hashAlgorithm != null) 'hashAlgorithm': hashAlgorithm.toValue(),
  };
}