fromMap static method

Implementation

static PurchaseOrderLineReadItemPriceSnapshot? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PurchaseOrderLineReadItemPriceSnapshot(
    pricingRule: PurchaseOrderLineReadItemPriceSnapshotPricingRule.fromMap(
        source['pricing_rule']),
  );
}