make enums fall back to unknown or null where possible

Futureproofing.
This commit is contained in:
Henry Hiles 2026-10-23 20:12:54 -04:00
commit 53d9c2b1e6
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -9,7 +9,7 @@ part "join_rules.g.dart";
sealed class JoinRulesContent extends Content with _$JoinRulesContent {
JoinRulesContent._();
factory JoinRulesContent({
required JoinRule joinRule,
@JsonKey(unknownEnumValue: JoinRule.unknown) required JoinRule joinRule,
@Default(ISet.empty()) ISet<AllowCondition> allow,
}) = _JoinRulesContent;