fromJson static method
Creates Class Object from Json
Implementation
static StorageEntryTypeV10 fromJson(MapEntry entry) {
switch (entry.key) {
case 'Plain':
return StorageEntryTypeV10_Plain(value: entry.value);
case 'Map':
return StorageEntryTypeV10_Map.fromJson(entry.value);
case 'DoubleMap':
return StorageEntryTypeV10_DoubleMap.fromJson(entry.value);
default:
throw UnexpectedTypeException('Unexpected type: ${entry.key}');
}
}