LineItemsDiscountAmount.fromJson constructor
LineItemsDiscountAmount.fromJson(
- Object? json
Implementation
factory LineItemsDiscountAmount.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return LineItemsDiscountAmount(
amount: (map['amount'] as num).toInt(),
discount: Discount.fromJson(map['discount']),
);
}