getSettingsCountry function

Future<ApiResponse<SettingsCountry>> getSettingsCountry(
  1. ExsitedClient client,
  2. Object countryId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/{api_version}/settings/countries/{country_id}

Read one country by its country_ id.

Implementation

Future<ApiResponse<SettingsCountry>> getSettingsCountry(
  ExsitedClient client,
  Object countryId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(CountriesUrls.settingsCountry,
        pathParams: {'country_id': countryId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: SettingsCountry.fromMap);