match method

bool match(
  1. Map map
)

Implementation

bool match(Map map) {
  final model = toJson();
  for (final query in map.entries) {
    try {
      final trueValue = model[query.key];
      final exists = trueValue == query.value;
      if (exists) {
        return true;
      }
    } catch (e) {
      return false;
    }
  }
  return false;
}