mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
30 lines
773 B
Dart
30 lines
773 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'options.dart';
|
|
import 'request.dart';
|
|
|
|
part 'create_task_batch.g.dart';
|
|
|
|
@JsonSerializable(explicitToJson: true)
|
|
class CreateTaskBatch {
|
|
List<CreateTaskBatchItem>? reqs;
|
|
Options? opts;
|
|
|
|
CreateTaskBatch({this.reqs, this.opts});
|
|
|
|
factory CreateTaskBatch.fromJson(Map<String, dynamic> json) => _$CreateTaskBatchFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$CreateTaskBatchToJson(this);
|
|
}
|
|
|
|
@JsonSerializable()
|
|
class CreateTaskBatchItem {
|
|
Request? req;
|
|
Options? opts;
|
|
|
|
CreateTaskBatchItem({this.req, this.opts});
|
|
|
|
factory CreateTaskBatchItem.fromJson(Map<String, dynamic> json) => _$CreateTaskBatchItemFromJson(json);
|
|
Map<String, dynamic> toJson() => _$CreateTaskBatchItemToJson(this);
|
|
}
|