fromNextInvocation method

dynamic fromNextInvocation (
  1. NextInvocation nextInvocation
)

Creates a new Context from NextInvocation which is the data from the Lambda Runtime Interface for the next Handler<T> invocation.

Implementation

static fromNextInvocation(NextInvocation nextInvocation) {
  return Context(
      requestId: nextInvocation.requestId,
      invokedFunction: nextInvocation.invokedFunctionArn);
}