parent
47645ea327
commit
7f7bdbf525
1 changed files with 1477 additions and 577 deletions
17
lib/models/requests/get_threads.dart
Normal file
17
lib/models/requests/get_threads.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "get_threads.freezed.dart";
|
||||
part "get_threads.g.dart";
|
||||
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class const GetThreadsRequest({
|
||||
required final String roomId,
|
||||
final String? since,
|
||||
final int limit = 20,
|
||||
}) with _$GetThreadsRequest {
|
||||
Map<String, Object?> toJson() => _$GetThreadsRequestToJson(this);
|
||||
|
||||
factory GetThreadsRequest.fromJson(Map<String, Object?> json) =>
|
||||
_$GetThreadsRequestFromJson(json);
|
||||
}
|
||||
Loading…
Reference in a new issue