decodeKeys function
Rejects any field the schema does not declare. Used by generated code.
Implementation
void decodeKeys(Map<String, Object?> m, Set<String> allowed, String f) {
for (final k in m.keys) {
if (!allowed.contains(k)) throw BridgeError(BridgeErrorCode.params, '$f.$k: unknown field');
}
}