mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-06 16:40:32 +00:00
refactor(downloader): remove opts parameter from Resolve (#1595)
This commit is contained in:
45 files changed
+1589
-384
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import 'options.dart';
|
||||
import 'request.dart';
|
||||
|
||||
class PatchTask {
|
||||
final Request? req;
|
||||
final Options? opts;
|
||||
|
||||
PatchTask({this.req, this.opts});
|
||||
|
||||
factory PatchTask.fromJson(Map<String, dynamic> json) => PatchTask(
|
||||
req: json['req'] == null ? null : Request.fromJson(json['req'] as Map<String, dynamic>),
|
||||
opts: json['opts'] == null ? null : Options.fromJson(json['opts'] as Map<String, dynamic>),
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {'req': req?.toJson(), 'opts': opts?.toJson()};
|
||||
}
|
||||
Reference in new issue
Block a user