parent
8d944831f5
commit
b71a7f0bd6
10 changed files with 519 additions and 98 deletions
19
lib/models/requests/get_space_hierarchy.dart
Normal file
19
lib/models/requests/get_space_hierarchy.dart
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Reference in a new issue