configure method

  1. @override
void configure(
  1. ConfigParams config
)

Configures component by passing configuration parameters.

  • config configuration parameters to be set.

Implementation

@override
void configure(ConfigParams config) {
  config = config.setDefaults(RestService._defaultConfig);
  this.config = config;
  dependencyResolver.configure(config);
  baseRoute = config.getAsNullableString('base_route') ?? baseRoute;
  swaggerEnable =
      config.getAsBooleanWithDefault('swagger.enable', swaggerEnable);
  swaggerRoute = config.getAsStringWithDefault('swagger.route', swaggerRoute);
}