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 json) => _$SeerrUserFromJson(json); }