InvoiceItemDiscountsItem.fromJson constructor
InvoiceItemDiscountsItem.fromJson(
- Object? json
Implementation
factory InvoiceItemDiscountsItem.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return InvoiceItemDiscountsItem(
coupon: map['coupon'] == null ? null : (map['coupon'] as String),
discount: map['discount'] == null ? null : (map['discount'] as String),
);
}