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>
55 lines
1.2 KiB
Dart
55 lines
1.2 KiB
Dart
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
|
|
}''';
|
|
}
|
|
}
|