checkboxFromJSON static method

bool? checkboxFromJSON(
  1. dynamic jsonValue
)

Returns a bool from ''/'on' conversion.

Implementation

static bool? checkboxFromJSON(dynamic jsonValue) {
  if (jsonValue == null) {
    return null;
  }
  return jsonValue is String &&
      jsonValue.trim().toLowerCase() == _checkboxOnValue;
}