forked from Nexus/nexus
make enums fall back to unknown or null where possible
Futureproofing.
This commit is contained in:
parent
401b527714
commit
53d9c2b1e6
1 changed files with 28 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue