fromJson static method

StorageEntryTypeV14 fromJson(
  1. MapEntry<String, dynamic> map
)

Creates Class Object from Json

Implementation

static StorageEntryTypeV14 fromJson(MapEntry<String, dynamic> map) {
  switch (map.key) {
    case 'Plain':
      return StorageEntryTypeV14_Plain(value: map.value);
    case 'Map':
      return StorageEntryTypeV14_Map.fromJson(map.value);
    default:
      throw UnexpectedTypeException('Unexpected type: ${map.key}');
  }
}