toBool method
Converts this Protobuf boolean into a normal boolean.
Implementation
bool toBool() => switch (this) {
BoolState.NO => false,
BoolState.YES => true,
BoolState.BOOL_UNDEFINED => false,
_ => throw ArgumentError("Unrecognized bool state: $this"),
};