perbaikan data report
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user