Json.opt

Returns the native type for this JSON if it matches the current runtime type.

If the runtime type does not match the given native type, the 'def' parameter is returned instead.

  1. const(T) opt [@property setter]
  2. T opt [@property setter]
    struct Json
    @property
    T
    opt
    (
    T
    )
    (
    T def = T.init
    )

Meta