replace: swap prosappweb content for prosapp_web_app (more complete version)
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>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
74a4f41902
commit
15175c1b91
@@ -0,0 +1,36 @@
|
||||
class ReputationEntity {
|
||||
final int total;
|
||||
final double average;
|
||||
final int totalPro;
|
||||
final double averagePro;
|
||||
|
||||
const ReputationEntity({
|
||||
required this.total,
|
||||
required this.average,
|
||||
required this.totalPro,
|
||||
required this.averagePro,
|
||||
});
|
||||
|
||||
static ReputationEntity fromDocument(Map<String, dynamic> doc) {
|
||||
final total = doc['total'] ?? 0;
|
||||
final totalPro = doc['total_pro'] ?? 0;
|
||||
final average = doc['average'] ?? 0.0;
|
||||
final averagePro = doc['average_pro'] ?? 0.0;
|
||||
|
||||
return ReputationEntity(
|
||||
total: int.parse(total.toString()),
|
||||
average: double.parse(average.toString()),
|
||||
totalPro: int.parse(totalPro.toString()),
|
||||
averagePro: double.parse(averagePro.toString()),
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toDocument() {
|
||||
return {
|
||||
'total': total,
|
||||
'average': average,
|
||||
'total_pro': totalPro,
|
||||
'average_pro': averagePro,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user