fromNextInvocation static method
Creates a new Context from NextInvocation which is the data from the Lambda Runtime Interface for the next Handler<T> invocation.
Implementation
static Context fromNextInvocation(NextInvocation nextInvocation) {
return Context(
handler: Client.handlerName!,
requestId: nextInvocation.requestId,
invokedFunction: nextInvocation.invokedFunctionArn,
);
}