findCustomers method
Find customers @returns customers
Implementation
// async findCustomers(options?: ApiOptions): Promise<IFindCustomerOutput> {
// return await this.get<IFindCustomerOutput>('/', options);
// }
Future<ResponseListModel> findCustomers(Options options) async {
try {
String url = baseUrl;
Map<String, String> combinedMap = Map.from(baseOptions.data)
..addAll(options.data);
Response? response = await getx(url, headers: combinedMap);
ResponseListModel data = ResponseListModel.fromJson(
json.decode(response.body) as Map<String, dynamic>);
return Future.value(data);
} catch (e) {
return Future.error(e);
}
}