EncryptionAlgorithmOptions.fromJson constructor

EncryptionAlgorithmOptions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EncryptionAlgorithmOptions.fromJson(Map<String, dynamic> json) {
  return EncryptionAlgorithmOptions(
    allowedValues: (json['allowedValues'] as List)
        .whereNotNull()
        .map((e) => (e as String).toEncryptionAlgorithm())
        .toList(),
    defaultValue: (json['defaultValue'] as String).toEncryptionAlgorithm(),
  );
}