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
|
|
@ -10,6 +10,9 @@ class const EncryptionContent({
|
|||
@JsonKey(name: "rotation_period_ms") final int rotationPeriodMS = 604800000,
|
||||
@JsonKey(name: "rotation_period_msgs") final int rotationPeriodMessages = 100,
|
||||
}) extends Content with _$EncryptionContent {
|
||||
@override
|
||||
Map<String, Object?> toJson() => _$EncryptionContentToJson(this);
|
||||
|
||||
factory EncryptionContent.fromJson(Map<String, Object?> json) =>
|
||||
_$EncryptionContentFromJson(json);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue