DiscountLineItem.fromJson constructor

DiscountLineItem.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory DiscountLineItem.fromJson(Map<String, Object?> json) =>
    DiscountLineItem(
      type: json["type"] as String,
      discount: Discount.fromJson(
        (json["discount"] as Map).cast<String, Object?>(),
      ),
    );