evaluate method

  1. @override
bool evaluate(
  1. JSON payload
)
override

Check if the payload satisfies the Constraint

Implementation

@override
bool evaluate(JSON payload) {
  try {
    return !payload[key].contains(value);
    // ignore: avoid_catches_without_on_clauses
  } catch (e) {
    return false;
  }
}