readConfig method

  1. @override
Future<ConfigParams> readConfig(
  1. String? correlationId,
  2. ConfigParams parameters
)
override

Reads configuration and parameterize it with given values.

  • correlationId (optional) transaction id to trace execution through call chain.
  • parameters values to parameters the configuration or null to skip parameterization. Return callback function that receives configuration or error.

Implementation

@override
Future<ConfigParams> readConfig(
    String? correlationId, ConfigParams parameters) async {
  var value = readObject(correlationId, parameters);
  var config = ConfigParams.fromValue(value);
  return config;
}