TotalAmount.fromJson constructor

TotalAmount.fromJson(
  1. Map<String, dynamic> json
)

Implementation

TotalAmount.fromJson(Map<String, dynamic> json) {
  amount = json['amount'];
  currency = json['currency'] ?? "SAR";
}