e_receipt_mobile/lib/domain/entities/login_user.dart

18 lines
382 B
Dart
Raw Normal View History

2026-04-01 17:58:59 +00:00
class LoginUser {
const LoginUser({
required this.username,
required this.token,
required this.refreshToken,
required this.role,
});
final String username;
final String token;
final String refreshToken;
final String role;
bool get isAdmin => role.toLowerCase() == 'admin';
bool get isCashier => role.toLowerCase() == 'cashier';
}