checkToBool static method

bool checkToBool(
  1. int? value
)

Converts to the boolean representation of the "Check" docfield in Frappé false is represented as 0 in Frappé while true is represented as 1

Implementation

static bool checkToBool(int? value) {
  if (value == null) {
    return false;
  }
  if (value != 0 && value != 1) {
    throw NotCheckError();
  }
  return value == 1;
}