readCredentials method

void readCredentials(
  1. ConfigParams config
)

Reads credentials from configuration parameters. Each section represents an individual CredentialParams

  • config configuration parameters to be read

Implementation

void readCredentials(ConfigParams config) {
  _items = <String, dynamic>{};
  var sections = config.getSectionNames();
  for (var index = 0; index < sections.length; index++) {
    var section = sections[index];
    var value = config.getSection(section);
    _items[section] = CredentialParams.fromString(value.toString());
  }
}