fromKey static method
Creates Class Object from Json
Implementation
static StorageHasherV9 fromKey(MapEntry entry) {
switch (entry.key) {
case 'Blake2_128':
return StorageHasherV9_Blake2_128();
case 'Blake2_256':
return StorageHasherV9_Blake2_256();
case 'Twox128':
return StorageHasherV9_Twox128();
case 'Twox256':
return StorageHasherV9_Twox256();
case 'Twox64Concat':
return StorageHasherV9_Twox64Concat();
default:
throw UnexpectedTypeException('Unexpected type: ${entry.key}');
}
}