forked from Nexus/nexus
add toJson to all content models
Fixes a regression from the primary constructor content migration
This commit is contained in:
parent
a3ef4f8135
commit
2041b81141
1 changed files with 45 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ class const JoinRulesContent({
|
|||
@JsonKey(unknownEnumValue: JoinRule.unknown) required final JoinRule joinRule,
|
||||
final ISet<AllowCondition> allow = const .empty(),
|
||||
}) extends Content with _$JoinRulesContent {
|
||||
@override
|
||||
Map<String, Object?> toJson() => _$JoinRulesContentToJson(this);
|
||||
|
||||
factory JoinRulesContent.fromJson(Map<String, Object?> json) =>
|
||||
_$JoinRulesContentFromJson(json);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue