toJson static method
Implementation
static MapEntry<String, dynamic> toJson(StorageEntryTypeV10 entryType) {
switch (entryType.kind) {
case 'Plain':
return MapEntry(
'Plain', (entryType as StorageEntryTypeV10_Plain).value);
case 'Map':
return MapEntry('Map', (entryType as StorageEntryTypeV10_Map).toJson());
case 'DoubleMap':
return MapEntry(
'DoubleMap', (entryType as StorageEntryTypeV10_DoubleMap).toJson());
default:
throw UnexpectedTypeException('Unexpected type: ${entryType.kind}');
}
}