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