fromMap static method

Implementation

static PurchaseOrderLineReadWarehouse? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PurchaseOrderLineReadWarehouse(
    href: readText(source['href']),
    id: readText(source['id']),
    name: readText(source['name']),
    object: readText(source['object']),
  );
}