fromKey static method
Creates Class Object from Json
Implementation
static StorageHasherV10 fromKey(MapEntry entry) {
switch (entry.key) {
case 'Blake2_128':
return StorageHasherV10_Blake2_128();
case 'Blake2_256':
return StorageHasherV10_Blake2_256();
case 'Blake2_128Concat':
return StorageHasherV10_Blake2_128Concat();
case 'Twox128':
return StorageHasherV10_Twox128();
case 'Twox256':
return StorageHasherV10_Twox256();
case 'Twox64Concat':
return StorageHasherV10_Twox64Concat();
default:
throw UnexpectedTypeException('Unexpected type: ${entry.key}');
}
}