toBool method

bool toBool()

Parses a String into a bool.

Implementation

bool toBool() {
  if (toLowerCase() == "true") {
    return true;
  }
  return false;
}