QuotesResourceTotalDetailsResourceBreakdown.fromJson constructor

QuotesResourceTotalDetailsResourceBreakdown.fromJson(
  1. Object? json
)

Implementation

factory QuotesResourceTotalDetailsResourceBreakdown.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return QuotesResourceTotalDetailsResourceBreakdown(
    discounts: (map['discounts'] as List<Object?>)
        .map((el) => LineItemsDiscountAmount.fromJson(el))
        .toList(),
    taxes: (map['taxes'] as List<Object?>)
        .map((el) => LineItemsTaxAmount.fromJson(el))
        .toList(),
  );
}