add toJson to all content models

Fixes a regression from the primary constructor content migration
This commit is contained in:
Henry Hiles 2026-10-25 18:30:28 -04:00
commit 2041b81141
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -11,6 +11,9 @@ class const ServerACLContent({
final IList<String> deny = const .empty(),
final bool allowIpLiterals = true,
}) extends Content with _$ServerACLContent {
@override
Map<String, Object?> toJson() => _$ServerACLContentToJson(this);
factory ServerACLContent.fromJson(Map<String, Object?> json) =>
_$ServerACLContentFromJson(json);
}