fromMap static method

Implementation

static PurchaseOrderLineItemPurchaseAccountingCode? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PurchaseOrderLineItemPurchaseAccountingCode(
    costOfGoodsSold: readText(source['cost_of_goods_sold']),
  );
}