Files
be_happy_public/lib/data/models/user_check_response_dto.dart
2026-05-12 12:02:40 +03:00

23 lines
565 B
Dart

class UserCheckResponseDto {
final bool success;
final bool hasFine;
final bool hasUnpaidOrder;
final bool hasCard;
UserCheckResponseDto({
required this.success,
required this.hasFine,
required this.hasUnpaidOrder,
required this.hasCard,
});
factory UserCheckResponseDto.fromJson(Map<String, dynamic> json) {
return UserCheckResponseDto(
success: json['success'] ?? false,
hasFine: json['hasFine'] ?? false,
hasUnpaidOrder: json['hasUnpaidOrder'] ?? false,
hasCard: json['hasCard'] ?? false,
);
}
}