fromMap static method

Implementation

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