mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-01-11 22:40:36 +00:00
30 lines
583 B
Dart
30 lines
583 B
Dart
import 'package:isar/isar.dart';
|
|
part 'track_preference.g.dart';
|
|
|
|
@collection
|
|
@Name("Track Preference")
|
|
class TrackPreference {
|
|
Id? syncId;
|
|
|
|
String? username;
|
|
|
|
String? oAuth;
|
|
|
|
String? prefs;
|
|
|
|
TrackPreference({this.syncId, this.username, this.oAuth, this.prefs});
|
|
|
|
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,
|
|
};
|
|
}
|