UnitInvoice.fromJson constructor

UnitInvoice.fromJson(
  1. Map json_
)

Implementation

UnitInvoice.fromJson(core.Map json_)
    : this(
        additionalCharges: json_.containsKey('additionalCharges')
            ? (json_['additionalCharges'] as core.List)
                .map((value) => UnitInvoiceAdditionalCharge.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        unitPrice: json_.containsKey('unitPrice')
            ? Price.fromJson(
                json_['unitPrice'] as core.Map<core.String, core.dynamic>)
            : null,
        unitPriceTaxes: json_.containsKey('unitPriceTaxes')
            ? (json_['unitPriceTaxes'] as core.List)
                .map((value) => UnitInvoiceTaxLine.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );