lab 6 done
This commit is contained in:
parent
704e53a3a9
commit
1526329748
@ -27,13 +27,7 @@ class CarRepository extends ApiInterface {
|
||||
? searchurl.replaceFirst('[name_count]', q.trim())
|
||||
: url;
|
||||
|
||||
final Response<dynamic> response = await _dio.get<Map<dynamic, dynamic>>(
|
||||
finalUrl,
|
||||
queryParameters: {
|
||||
'filter[name_cont]': q,
|
||||
'page[number]': page,
|
||||
'page[size]': pageSize,
|
||||
},);
|
||||
final Response<dynamic> response = await _dio.get<Map<dynamic, dynamic>>(finalUrl);
|
||||
|
||||
print('Response data: ${response.data}');
|
||||
final CarDto dto = CarDto.fromJson(response.data as Map<String, dynamic>);
|
||||
|
Loading…
x
Reference in New Issue
Block a user