fromChain static method
Implementation
static Danger<EnumerateRequest, CitrusRequestExceptionA> fromChain(Chain chain) {
final log = Log(classLocation: EnumerateRequest, functionLocation: 'fromChain');
final locationResult = chain.getVarietyAsStringWithDefault(JSON_KEY_LOCATION, './');
log.add(locationResult);
final nameResult = chain.getVarietyAsStringWithDefault(JSON_KEY_NAME, 'citrus_enumerate.yaml');
log.add(nameResult);
final logResult = chain.isFlag(JSON_KEY_LOG);
log.add(logResult);
final result = EnumerateRequest(
locationResult.wrapped,
nameResult.wrapped,
logResult.wrapped,
);
return Success(result, log);
}