mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
25 lines
452 B
Dart
25 lines
452 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'options.dart';
|
|
import 'resource.dart';
|
|
|
|
part 'create_task.g.dart';
|
|
|
|
@JsonSerializable(explicitToJson: true)
|
|
class CreateTask {
|
|
Resource res;
|
|
Options? opts;
|
|
|
|
CreateTask({
|
|
required this.res,
|
|
this.opts,
|
|
});
|
|
|
|
factory CreateTask.fromJson(
|
|
Map<String, dynamic> json,
|
|
) =>
|
|
_$CreateTaskFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$CreateTaskToJson(this);
|
|
}
|