import 'package:smooth_app/background/background_task.dart'; /// Abstract background task with paged actions. abstract class BackgroundTaskPaged extends BackgroundTask { BackgroundTaskPaged({ required super.processName, required super.uniqueId, required super.stamp, required this.pageSize, }); BackgroundTaskPaged.fromJson(super.json) : pageSize = json[_jsonTagPageSize] as int, super.fromJson(); final int pageSize; static const String _jsonTagPageSize = 'pageSize'; @override Map toJson() { final Map result = super.toJson(); result[_jsonTagPageSize] = pageSize; return result; } }