mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-01-11 22:40:36 +00:00
38 lines
656 B
Dart
38 lines
656 B
Dart
import 'package:isar_community/isar.dart';
|
|
part 'track_preference.g.dart';
|
|
|
|
@collection
|
|
@Name("Track Preference")
|
|
class TrackPreference {
|
|
Id? syncId;
|
|
|
|
String? username;
|
|
|
|
String? oAuth;
|
|
|
|
String? prefs;
|
|
|
|
bool? refreshing;
|
|
|
|
TrackPreference({
|
|
this.syncId,
|
|
this.username,
|
|
this.oAuth,
|
|
this.prefs,
|
|
this.refreshing,
|
|
});
|
|
|
|
TrackPreference.fromJson(Map<String, dynamic> json) {
|
|
syncId = json['syncId'];
|
|
username = json['username'];
|
|
oAuth = json['oAuth'];
|
|
prefs = json['prefs'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'syncId': syncId,
|
|
'username': username,
|
|
'oAuth': oAuth,
|
|
'prefs': prefs,
|
|
};
|
|
}
|