fromMap static method

ItemReceiptUpdatedLine? fromMap(
  1. Object? body
)

Implementation

static ItemReceiptUpdatedLine? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return ItemReceiptUpdatedLine(
    item: ItemReceiptUpdatedLineItem.fromMap(source['item']),
    pendingReturnQuantity: readDecimal(source['pending_return_quantity']),
    purchaseOrderLine: ItemReceiptUpdatedLinePurchaseOrderLine.fromMap(
        source['purchase_order_line']),
    receiptQuantity: readDecimal(source['receipt_quantity']),
    receivedQuantity: readDecimal(source['received_quantity']),
    returnedQuantity: readDecimal(source['returned_quantity']),
    uom: ItemReceiptUpdatedLineUom.fromMap(source['uom']),
    warehouse: ItemReceiptUpdatedLineWarehouse.fromMap(source['warehouse']),
  );
}