Move to Flutter 3.47, use the improvements that come with this (#64)
Reviewed-on: #64
This commit is contained in:
parent
01b13b4764
commit
077044ec19
157 changed files with 1366 additions and 1457 deletions
|
|
@ -1,15 +1,17 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "get_room_state.freezed.dart";
|
||||
part "get_room_state.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class GetRoomStateRequest with _$GetRoomStateRequest {
|
||||
const factory GetRoomStateRequest({
|
||||
required String roomId,
|
||||
@Default(false) bool refetch,
|
||||
@Default(false) bool fetchMembers,
|
||||
@Default(false) bool includeMembers,
|
||||
}) = _GetRoomStateRequest;
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class const GetRoomStateRequest({
|
||||
required final String roomId,
|
||||
final bool refetch = false,
|
||||
final bool fetchMembers = false,
|
||||
final bool includeMembers = false,
|
||||
}) with _$GetRoomStateRequest {
|
||||
Map<String, Object?> toJson() => _$GetRoomStateRequestToJson(this);
|
||||
|
||||
factory GetRoomStateRequest.fromJson(Map<String, Object?> json) =>
|
||||
_$GetRoomStateRequestFromJson(json);
|
||||
|
|
|
|||
Loading…
Reference in a new issue