call method

  1. @override
bool call(
  1. Map input
)
override

Implementation

@override
bool call(Map input) {
  for (final MapEntry(:key, value: validator) in properties.entries) {
    if (!input.containsKey(key)) continue;
    if (!validator(input[key])) return false;
  }
  return true;
}