RequestContext.inputResponseAs

Typed convenience over inputResponses: decode the MRTR answer the client attached for id into T via T.fromJson (e.g. ElicitResult, CreateMessageResult, ListRootsResult — matching the InputRequest kind the server issued). Returns T.fromJson(Json.emptyObject) when no answer is present for id.

interface RequestContext
@safe
T
inputResponseAs
(
T
)
(
string id
)