import 'package:equatable/equatable.dart';

class RoomStatisticsBO extends Equatable {
  /// 待响应房间数
  final int pendingResponseCount;

  /// 入住中房间数
  final int occupiedCount;

  /// 空闲可清洁房间数
  final int vacantCleanableCount;

  const RoomStatisticsBO({
    this.pendingResponseCount = 0,
    this.occupiedCount = 0,
    this.vacantCleanableCount = 0,
  });

  factory RoomStatisticsBO.fromJson(Map<String, dynamic> json) {
    return RoomStatisticsBO(
      pendingResponseCount: json['pendingResponseCount'] as int? ?? 0,
      occupiedCount: json['occupiedCount'] as int? ?? 0,
      vacantCleanableCount: json['vacantCleanableCount'] as int? ?? 0,
    );
  }

  @override
  List<Object?> get props =>
      [pendingResponseCount, occupiedCount, vacantCleanableCount];
}
