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,54 @@
|
||||
class PaymentMethodEntity {
|
||||
final bool nequi;
|
||||
final bool datafono;
|
||||
final bool transferencia;
|
||||
|
||||
static const empty = PaymentMethodEntity(
|
||||
nequi: false,
|
||||
datafono: false,
|
||||
transferencia: false,
|
||||
);
|
||||
|
||||
const PaymentMethodEntity({
|
||||
required this.nequi,
|
||||
required this.datafono,
|
||||
required this.transferencia,
|
||||
});
|
||||
|
||||
PaymentMethodEntity copyWith({
|
||||
bool? datafono,
|
||||
bool? nequi,
|
||||
bool? transferencia,
|
||||
}) {
|
||||
return PaymentMethodEntity(
|
||||
nequi: nequi ?? this.nequi,
|
||||
datafono: datafono ?? this.datafono,
|
||||
transferencia: transferencia ?? this.transferencia,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, Object?> toDocument() {
|
||||
return {
|
||||
'nequi': nequi,
|
||||
'datafono': datafono,
|
||||
'transferencia': transferencia,
|
||||
};
|
||||
}
|
||||
|
||||
static PaymentMethodEntity fromDocument(Map<String, dynamic> doc) {
|
||||
return PaymentMethodEntity(
|
||||
nequi: doc['nequi'] as bool,
|
||||
datafono: doc['datafono'] as bool,
|
||||
transferencia: doc['transferencia'] as bool,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return '''PaymentMethodEntity {
|
||||
nequi: $nequi
|
||||
datafono: $datafono
|
||||
transferencia: $transferencia
|
||||
}''';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user