fromKey static method
Creates Class Object from Json
Implementation
static StorageHasherV11 fromKey(MapEntry entry) {
switch (entry.key) {
case 'Blake2_128':
return StorageHasherV11_Blake2_128();
case 'Blake2_256':
return StorageHasherV11_Blake2_256();
case 'Blake2_128Concat':
return StorageHasherV11_Blake2_128Concat();
case 'Twox128':
return StorageHasherV11_Twox128();
case 'Twox256':
return StorageHasherV11_Twox256();
case 'Twox64Concat':
return StorageHasherV11_Twox64Concat();
case 'Identity':
return StorageHasherV11_Identity();
default:
throw UnexpectedTypeException('Unexpected type: ${entry.key}');
}
}