prosapp_web_app has chat, dashboard, calendar, support, 13 providers and Fluro URL routing. Keep Dockerfile + nginx.conf from previous prosappweb. Upgrade google_fonts 6.2.1 → 8.1.0 (Dart 3.12 compat fix). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
536 B
Dart
32 lines
536 B
Dart
class CityEntity {
|
|
final String name;
|
|
final String coords;
|
|
|
|
const CityEntity({
|
|
required this.name,
|
|
required this.coords,
|
|
});
|
|
|
|
Map<String, Object?> toDocument() {
|
|
return {
|
|
'name': name,
|
|
'coords': coords,
|
|
};
|
|
}
|
|
|
|
static CityEntity fromDocument(Map<String, dynamic> doc) {
|
|
return CityEntity(
|
|
name: doc['name'] as String,
|
|
coords: doc['coords'] as String,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return '''CityEntity {
|
|
name: $name
|
|
coords: $coords
|
|
}''';
|
|
}
|
|
}
|