ShipmentInvoiceLineItemInvoice.fromJson constructor

ShipmentInvoiceLineItemInvoice.fromJson(
  1. Map json_
)

Implementation

ShipmentInvoiceLineItemInvoice.fromJson(core.Map json_)
    : this(
        lineItemId: json_.containsKey('lineItemId')
            ? json_['lineItemId'] as core.String
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
        shipmentUnitIds: json_.containsKey('shipmentUnitIds')
            ? (json_['shipmentUnitIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        unitInvoice: json_.containsKey('unitInvoice')
            ? UnitInvoice.fromJson(
                json_['unitInvoice'] as core.Map<core.String, core.dynamic>)
            : null,
      );