Hospital class
A model representing a hospital.
This class holds details about a specific hospital, such as its ID, name, geolocation, radius, and address.
Constructors
Properties
- address → String?
-
The physical address of the hospital.
final
- geolocationPoint → String?
-
The geolocation point of the hospital, typically as a string (e.g., "lat,lon").
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The unique identifier of the hospital.
final
- name → String
-
The name of the hospital.
final
- radius → int?
-
The operational radius of the hospital in meters.
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
-
toJson(
) → Map< String, dynamic> - Converts this Hospital instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited