PaymentCollectionByModeList.fromJson constructor
PaymentCollectionByModeList.fromJson(
- Map<String, dynamic> json
)
Implementation
PaymentCollectionByModeList.fromJson(Map<String, dynamic> json) {
id = json['id'];
cartId = json['cartId'];
invoiceId = json['invoiceId'];
transactionId = json['transactionId'];
comment = json['comment'];
mode = json['mode'] != null ? new Mode.fromJson(json['mode']) : null;
amount = json['amount'];
currency = json['currency'];
status = json['status'];
action = json['action'];
if (json['attributesMapping'] != null) {
attributesMapping = <AttributesMapping>[];
json['attributesMapping'].forEach((v) {
attributesMapping!.add(new AttributesMapping.fromJson(v));
});
}
}