Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus
nexus/lib/models/requests/get_space_hierarchy.dart
2026-10-15 22:34:27 -04:00

19 lines
626 B
Dart

import "package:freezed_annotation/freezed_annotation.dart";
part "get_space_hierarchy.freezed.dart";
part "get_space_hierarchy.g.dart";
@Freezed(toJson: false, fromJson: false)
@JsonSerializable(includeIfNull: false)
class const GetSpaceHierarchyRequest({
required final String roomId,
final String? from,
final int limit = 50,
final int? maxDepth,
final bool? suggestedOnly,
}) with _$GetSpaceHierarchyRequest {
Map<String, Object?> toJson() => _$GetSpaceHierarchyRequestToJson(this);
factory GetSpaceHierarchyRequest.fromJson(Map<String, Object?> json) =>
_$GetSpaceHierarchyRequestFromJson(json);
}