AppSettings.fromConfigService constructor

AppSettings.fromConfigService(
  1. ConfigService configService
)

Implementation

factory AppSettings.fromConfigService(ConfigService configService) {
  return AppSettings(
    baseUrl: configService.getStringValue(key: 'baseUrl'),
    paymentsBaseUrl: configService.getStringValue(key: 'paymentsBaseUrl'),
    reportsBaseUrl: configService.getStringValue(key: 'reportsBaseUrl'),
    notificationsBaseUrl:
        configService.getStringValue(key: 'notificationsBaseUrl'),
    financeBaseUrl: configService.getStringValue(key: 'financeBaseUrl'),
  );
}