fromJson static method
Creates Class Object from Json
Implementation
static StorageEntryTypeV13 fromJson(MapEntry<String, dynamic> map) {
switch (map.key) {
case 'Plain':
return StorageEntryTypeV13_Plain(value: map.value);
case 'Map':
return StorageEntryTypeV13_Map.fromJson(map.value);
case 'DoubleMap':
return StorageEntryTypeV13_DoubleMap.fromJson(map.value);
case 'NMap':
return StorageEntryTypeV13_NMap.fromJson(map.value);
default:
throw UnexpectedTypeException('Unexpected type: ${map.key}');
}
}