parseBool method

bool? parseBool()

Implementation

bool? parseBool() {
  if (this == null) return null;
  if (this!.toLowerCase() == 'true') {
    return true;
  } else if (this!.toLowerCase() == 'false') {
    return false;
  } else {
    return null;
  }
}