Value.as

Converts to T type.

Calling fromMsgpack if $(D_KEYWORD class) and $(D_KEYWORD struct) implement fromMsgpack method. fromMsgpack signature is:

void fromMsgpack(Value value)

This method assigns converted values to all members of T object if $(D_KEYWORD class) and $(D_KEYWORD struct) don't implement fromMsgpack.

Parameters

args Args

arguments to class constructor(class only).

Return Value

Type: T

converted value.

Meta