LineItemGroup.fromJson constructor

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

Implementation

factory LineItemGroup.fromJson(Map<String, Object?> json) => LineItemGroup(
      lineItems: (json["line_items"] as List)
          .map((item) => LineItem.fromJson(item))
          .toList(),
      total: inttegro_money.Amount.fromJson(
          (json["total"] as Map).cast<String, Object?>()),
    );