fromJson static method

StorageEntryTypeV9 fromJson(
  1. MapEntry<String, dynamic> entry
)

Creates Class Object from Json

Implementation

static StorageEntryTypeV9 fromJson(MapEntry<String, dynamic> entry) {
  switch (entry.key) {
    case 'Plain':
      return StorageEntryTypeV9_Plain(value: entry.value);
    case 'Map':
      return StorageEntryTypeV9_Map.fromJson(entry.value);
    case 'DoubleMap':
      return StorageEntryTypeV9_DoubleMap.fromJson(entry.value);
    default:
      throw UnexpectedTypeException('Unexpected type: ${entry.key}');
  }
}