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
|
|
@ -18,6 +18,9 @@ class const PowerLevelsContent({
|
|||
final int stateDefault = 50,
|
||||
final int usersDefault = 0,
|
||||
}) extends Content with _$PowerLevelsContent {
|
||||
@override
|
||||
Map<String, Object?> toJson() => _$PowerLevelsContentToJson(this);
|
||||
|
||||
factory PowerLevelsContent.fromJson(Map<String, Object?> json) =>
|
||||
_$PowerLevelsContentFromJson(json);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue