fromChain static method

Danger<TreeRequest, CitrusRequestExceptionA> fromChain(
  1. Chain chain
)
override

Implementation

static Danger<TreeRequest, CitrusRequestExceptionA> fromChain(Chain chain) {

    final log = Log(classLocation: TreeRequest, functionLocation: 'fromChain');

    final logResult = chain.isFlag(JSON_KEY_LOG);
    log.add(logResult);

    final result = TreeRequest(
        logResult.wrapped,
    );

    return Success(result, log);

}