HashAlgorithmOptions.fromJson constructor

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

Implementation

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