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