MiValue.asBool

bool asBool() @safe

Returns

String value parsed as boolean.

Throws

Exception if not a string or not a known boolean representation.

Example:

auto v = MiValue.fromString("true");
assert(v.asBool() == true);