getTenantCustomer method
Implementation
Future<Customer?> getTenantCustomer(String customerTitle,
{RequestConfig? requestConfig}) async {
return nullIfNotFound(
(RequestConfig requestConfig) async {
var response = await _tbClient.get<Map<String, dynamic>>(
'/api/tenant/customers',
queryParameters: {'customerTitle': customerTitle},
options: defaultHttpOptionsFromConfig(requestConfig));
return response.data != null ? Customer.fromJson(response.data!) : null;
},
requestConfig: requestConfig,
);
}