mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
26 lines
538 B
Dart
26 lines
538 B
Dart
import 'dart:convert';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'version.g.dart';
|
|
|
|
@JsonSerializable(explicitToJson: true, includeIfNull: false)
|
|
class NZBGetVersion {
|
|
@JsonKey(name: 'result')
|
|
String version;
|
|
|
|
NZBGetVersion({
|
|
required this.version,
|
|
});
|
|
|
|
@override
|
|
String toString() => json.encode(this.toJson());
|
|
|
|
factory NZBGetVersion.fromJson(Map<String, dynamic> json) {
|
|
return _$NZBGetVersionFromJson(json);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return _$NZBGetVersionToJson(this);
|
|
}
|
|
}
|