v1HashFunctionFromJson function
Implementation
v1HashFunction v1HashFunctionFromJson(dynamic value) {
switch (value) {
case 'HASH_FUNCTION_NO_OP': return v1HashFunction.hash_function_no_op;
case 'HASH_FUNCTION_SHA256': return v1HashFunction.hash_function_sha256;
case 'HASH_FUNCTION_KECCAK256': return v1HashFunction.hash_function_keccak256;
case 'HASH_FUNCTION_NOT_APPLICABLE': return v1HashFunction.hash_function_not_applicable;
default: throw ArgumentError('Unknown v1HashFunction: $value');
}
}