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]
    struct Json
    @safe @property const
    const(T)
    opt
    (
    T
    )
    (
    const(T) def = T.init
    )
  2. T opt [@property setter]

See Also

get

Meta