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