getBusinessConfig static method

BusinessAppConfigModel? getBusinessConfig()

to get business config model

Implementation

static BusinessAppConfigModel? getBusinessConfig() {
  String? businessConfig = _prefsInstance?.getString("businessConfig");
  if (businessConfig != null) {
    BusinessAppConfigModel businessAppConfigModel =
        BusinessAppConfigModel.fromJson(json.decode(businessConfig));
    return businessAppConfigModel;
  } else {
    return null;
  }
}