evaluate method

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

Check if the payload satisfies the Constraint

Implementation

@override
bool evaluate(JSON payload) => payload[key] is bool && payload[key];