getCustomerTitle method

Future<String?> getCustomerTitle(
  1. String customerId, {
  2. RequestConfig? requestConfig,
})

Implementation

Future<String?> getCustomerTitle(String customerId,
    {RequestConfig? requestConfig}) async {
  return nullIfNotFound(
    (RequestConfig requestConfig) async {
      var options = defaultHttpOptionsFromConfig(requestConfig);
      options.responseType = ResponseType.plain;
      var response = await _tbClient
          .get<String>('/api/customer/$customerId/title', options: options);
      return response.data;
    },
    requestConfig: requestConfig,
  );
}