Files
plezy/lib/models/seerr/seerr_user.dart
edde746 a33c423985 refactor(models): stop parsing wire fields and enum members nothing consumes
Parse-only DTO surface deleted across trackers and catalog models: quality-preset storageKey/fromStorage round-trips (persistence uses EnumPref on .name), PlexHome's placeholder identity fields (id stays — deriveHomeSecret reads it), SeerrUser.email/avatar, SimklSearchResult.endpointType, SimklDetail.type, SimklAllItemsEntry.status/isShow, TraktCatalogEntry.rank, CatalogItem.relevance, and the never-produced CatalogRankScope.favorited/.seasonal members with their label arms. Tracker root: OAuthProxyStart.expiresIn, TrackerSession.scope/isExpired, copyWith slimmed to its one real parameter, TrackerHttpClient.service. TrackerAccountStore.service and the trackerAccountStore() alias are live (persisted-blob validation, callers) and stay.
2026-08-17 19:02:24 +02:00

17 lines
479 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'seerr_user.g.dart';
/// The authenticated Seerr user, as returned by the `/auth/*` login
/// endpoints and `GET /auth/me`.
@JsonSerializable(createToJson: false)
class SeerrUser {
final int id;
final String? displayName;
final int? permissions;
const SeerrUser({required this.id, this.displayName, this.permissions});
factory SeerrUser.fromJson(Map<String, dynamic> json) => _$SeerrUserFromJson(json);
}