class HostelBody {
  String? name;
  String? address;
  String? phone;
  String? email;
  String? description;
  String? capacity;
  String? status;
  String? categoryId;

  HostelBody({
    this.name,
    this.address,
    this.phone,
    this.email,
    this.description,
    this.capacity,
    this.status,
    this.categoryId,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['name'] = name;
    data['address'] = address;
    data['phone'] = phone;
    data['email'] = email;
    data['description'] = description;
    data['capacity'] = capacity;
    data['status'] = status;
    data['category_id'] = categoryId;
    return data;
  }
}
