mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
35 lines
725 B
Dart
35 lines
725 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'options.g.dart';
|
|
|
|
@JsonSerializable(explicitToJson: true)
|
|
class Options {
|
|
String name;
|
|
String path;
|
|
List<int> selectFiles;
|
|
Object? extra;
|
|
|
|
Options({
|
|
required this.name,
|
|
required this.path,
|
|
required this.selectFiles,
|
|
this.extra,
|
|
});
|
|
|
|
factory Options.fromJson(Map<String, dynamic> json) =>
|
|
_$OptionsFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$OptionsToJson(this);
|
|
}
|
|
|
|
@JsonSerializable()
|
|
class OptsExtraHttp {
|
|
int connections = 0;
|
|
|
|
OptsExtraHttp();
|
|
|
|
factory OptsExtraHttp.fromJson(Map<String, dynamic> json) =>
|
|
_$OptsExtraHttpFromJson(json);
|
|
Map<String, dynamic> toJson() => _$OptsExtraHttpToJson(this);
|
|
}
|