fromMap static method

Implementation

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