Facility class
Constructors
-
Facility({String id = "", String name = "", String description = "", String ownerName = "", String ownerId = "", String ownerImgUrl = "", FacilityType type = FacilityType.publisher, Address? address, double reviewStars = 0.0, Price? price, FacilityCommodity? facilityCommodity, Position? position, bool isActive = true, bool isMain = true, List<
String> galleryImgUrls = const [], List<String> bookings = const [], List<String> reviews = const []}) - Facility.addBasic(FacilityType type)
- Facility.fromJSON(dynamic data)
-
Facility.fromQueryDocumentSnapshot({required QueryDocumentSnapshot<
Object?> queryDocumentSnapshot})
Properties
- address ↔ Address?
-
getter/setter pair
-
bookings
↔ List<
String> -
getter/setter pair
- description ↔ String
-
getter/setter pair
- facilityCommodity ↔ FacilityCommodity?
-
getter/setter pair
-
galleryImgUrls
↔ List<
String> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
getter/setter pair
- isActive ↔ bool
-
getter/setter pair
- isMain ↔ bool
-
getter/setter pair
- name ↔ String
-
getter/setter pair
- ownerId ↔ String
-
getter/setter pair
- ownerImgUrl ↔ String
-
getter/setter pair
- ownerName ↔ String
-
getter/setter pair
- position ↔ Position?
-
getter/setter pair
- price ↔ Price?
-
getter/setter pair
-
reviews
↔ List<
String> -
getter/setter pair
- reviewStars ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ FacilityType
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → Map< String, dynamic> -
toJSONSimple(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited