mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 07:45:30 +00:00
20 lines
439 B
Dart
20 lines
439 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'options.dart';
|
|
import 'request.dart';
|
|
|
|
part 'create_task.g.dart';
|
|
|
|
@JsonSerializable(explicitToJson: true)
|
|
class CreateTask {
|
|
String? rid;
|
|
Request? req;
|
|
Options? opts;
|
|
|
|
CreateTask({this.rid, this.req, this.opts});
|
|
|
|
factory CreateTask.fromJson(Map<String, dynamic> json) => _$CreateTaskFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$CreateTaskToJson(this);
|
|
}
|