fetchSettings method

Future fetchSettings()

Implementation

Future fetchSettings() async {
  try {
    String apiUrl = ApiConstantDev.urlApiSettings;
    var response = await apiClient.getData(apiUrl, fName: 'fetchSettings');
    if (response.statusCode == HttpStatus.ok) {
      return settingsFromJson(response.body);
    }
  } catch (ex, trace) {
    logError(ex, trace: trace, position: 'fetchSettings');
    return null;
  }
}