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