27 lines
443 B
Dart
27 lines
443 B
Dart
enum PropertyType {
|
|
apartment,
|
|
flat,
|
|
house,
|
|
atelier
|
|
}
|
|
|
|
class Property {
|
|
final String title;
|
|
String? description;
|
|
final String? location;
|
|
final DateTime? daterent;
|
|
double price;
|
|
bool isAvailable;
|
|
PropertyType type;
|
|
|
|
Property ({
|
|
required this.title,
|
|
this.description,
|
|
required this.location,
|
|
this.daterent,
|
|
required this.price,
|
|
this.isAvailable = false,
|
|
this.type = PropertyType.flat,
|
|
});
|
|
}
|