mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 23:57:54 +00:00
24 lines
452 B
Dart
24 lines
452 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'info.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class Info {
|
|
String version;
|
|
String runtime;
|
|
String os;
|
|
String arch;
|
|
bool inDocker;
|
|
|
|
Info({
|
|
this.version = '',
|
|
this.runtime = '',
|
|
this.os = '',
|
|
this.arch = '',
|
|
this.inDocker = false,
|
|
});
|
|
|
|
factory Info.fromJson(Map<String, dynamic> json) => _$InfoFromJson(json);
|
|
Map<String, dynamic> toJson() => _$InfoToJson(this);
|
|
}
|