DiscountAllocations.fromJson(Map<String, dynamic> json) { amount = json['amount']; discountApplicationIndex = json['discount_application_index']; }