getLotChildren method
Get lot children
Implementation
Future<List<LotGenealogy>> getLotChildren(String parentLotId) async {
final response = await _apiClient.get<Map<String, dynamic>>(
'/api/v1/inventory/lot-genealogies/$parentLotId/children',
);
final children = response['data'] as List<dynamic>;
return children
.map((child) => LotGenealogy.fromJson(child as Map<String, dynamic>))
.toList();
}