class ExpenseTypeModel {
  final String id;
  final String name;
  final bool noOfPersonsRequired;
  final String description;
  final bool isActive;

  ExpenseTypeModel({
    required this.id,
    required this.name,
    required this.noOfPersonsRequired,
    required this.description,
    required this.isActive,
  });

  factory ExpenseTypeModel.fromJson(Map<String, dynamic> json) {
    return ExpenseTypeModel(
      id: json['id'],
      name: json['name'],
      noOfPersonsRequired: json['noOfPersonsRequired'] ?? false,
      description: json['description'] ?? '',
      isActive: json['isActive'] ?? false,
    );
  }
}
