createPhysicalInventory method

Future<PhysicalInventory> createPhysicalInventory(
  1. CreatePhysicalInventoryRequest request
)

Create physical inventory

Implementation

Future<PhysicalInventory> createPhysicalInventory(
  CreatePhysicalInventoryRequest request,
) async {
  final response = await _apiClient.post<Map<String, dynamic>>(
    '/api/v1/inventory/physical-inventories',
    data: request.toJson(),
  );

  return PhysicalInventory.fromJson(response);
}