parseCryProperties method
dynamic
parseCryProperties()
Implementation
parseCryProperties() async {
YamlMap cry = yamlMap.nodes['cry']!.value;
Map profiles = cry['profiles'].value;
String? profilesActive = profiles['active'];
if (profilesActive != null) {
var profilesStr = await rootBundle.loadString(
'config/application-$profilesActive.yaml',
);
variableMap = await loadYaml(profilesStr);
}
var loggerProperties = LoggerProperties.fromMap(
cry['logger'].value.map(convertVariable),
);
var apiProperties = ApiProperties.fromMap(
cry['api'].value.map(convertVariable),
);
CryProperties cryProperties = CryProperties(
loggerProperties: loggerProperties,
apiProperties: apiProperties,
);
addBean('cryProperties', cryProperties);
}