mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
21 lines
509 B
Dart
21 lines
509 B
Dart
import 'package:gopeed/api/model/extension.dart';
|
|
import 'package:gopeed/api/model/request.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'create_task_batch.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class CreateTaskBatch {
|
|
List<Request> reqs;
|
|
Option? opt;
|
|
|
|
CreateTaskBatch({
|
|
this.reqs = const [],
|
|
this.opt,
|
|
});
|
|
|
|
factory CreateTaskBatch.fromJson(Map<String, dynamic> json) =>
|
|
_$CreateTaskBatchFromJson(json);
|
|
Map<String, dynamic> toJson() => _$CreateTaskBatchToJson(this);
|
|
}
|