allow adding / removing rooms from a space

Fixes #140
This commit is contained in:
Henry Hiles 2026-11-02 12:21:58 -05:00
commit 7007c9af89
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -0,0 +1,20 @@
import "package:fast_immutable_collections/fast_immutable_collections.dart";
import "package:freezed_annotation/freezed_annotation.dart";
import "package:nexus/models/content/content.dart";
part "space_child.freezed.dart";
part "space_child.g.dart";
@Freezed(toJson: false, fromJson: false)
@JsonSerializable(includeIfNull: false)
class const SpaceChildContent({
final IList<String> via = const .empty(),
final String? order,
final bool suggested = false,
}) extends Content with _$SpaceChildContent {
@override
Map<String, Object?> toJson() => _$SpaceChildContentToJson(this);
factory SpaceChildContent.fromJson(Map<String, Object?> json) =>
_$SpaceChildContentFromJson(json);
}