decodeSnapshotV2 method
Implementation
Result<YSnapshot, Error> decodeSnapshotV2({
required Uint8List snapshot,
}) {
final results = _decodeSnapshotV2([snapshot]);
final result = results[0];
return Result.fromJson(result, (ok) => YSnapshot.fromJson(ok),
(error) => error is String ? error : (error! as ParsedString).value);
}