fromJson static method

StorageEntryTypeV10 fromJson(
  1. MapEntry entry
)

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}');
  }
}