perbaikan data report

This commit is contained in:
2026-04-23 21:21:33 +07:00
parent ecb2a369af
commit a898e4432f
13 changed files with 140 additions and 134 deletions

View File

@@ -24,14 +24,14 @@ class PaymentsTransaction {
});
PaymentsTransaction.fromJson(dynamic json) {
id = json['id'];
id = num.tryParse(json['id']?.toString() ?? '');
platform = json['platform'];
transactionType = json['transaction_type'];
amount = num.tryParse(json['amount'].toString());
amount = num.tryParse(json['amount']?.toString() ?? '');
date = json['date'];
invoiceNo = json['invoice_no'];
referenceId = json['reference_id'];
paymentTypeId = json['payment_type_id'];
referenceId = num.tryParse(json['reference_id']?.toString() ?? '');
paymentTypeId = num.tryParse(json['payment_type_id']?.toString() ?? '');
meta = json['meta'] != null ? TransactionMeta.fromJson(json['meta']) : null;
paymentType = json['payment_type'] != null ? PaymentType.fromJson(json['payment_type']) : null;
}
@@ -63,7 +63,7 @@ class PaymentType {
});
PaymentType.fromJson(dynamic json) {
id = json['id'];
id = num.tryParse(json['id']?.toString() ?? '');
name = json['name'];
paymentTypeMeta = json['meta'] != null ? PaymentTypeMeta.fromJson(json['meta']) : null;
}