InvoiceSummary.fromJson constructor

InvoiceSummary.fromJson(
  1. Map json_
)

Implementation

InvoiceSummary.fromJson(core.Map json_)
    : this(
        additionalChargeSummaries:
            json_.containsKey('additionalChargeSummaries')
                ? (json_['additionalChargeSummaries'] as core.List)
                    .map((value) =>
                        InvoiceSummaryAdditionalChargeSummary.fromJson(
                            value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        productTotal: json_.containsKey('productTotal')
            ? Amount.fromJson(
                json_['productTotal'] as core.Map<core.String, core.dynamic>)
            : null,
      );