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