HospitalBlock class
A model representing a block within a hospital.
This class holds details about a specific hospital block, such as its ID, name, number of floors, and the ID of the hospital it belongs to.
Constructors
- HospitalBlock.new({required int id, required String name, required int noOfFloors, required String hospitalId})
- Creates a HospitalBlock instance.
-
HospitalBlock.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hospitalId → String
-
The ID of the hospital this block belongs to.
final
- id → int
-
The unique identifier of the hospital block.
final
- name → String
-
The name of the hospital block.
final
- noOfFloors → int
-
The number of floors in the hospital block.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited