import 'package:json_annotation/json_annotation.dart'; import 'package:marianum_mobile/api/apiParams.dart'; part 'getChatParams.g.dart'; @JsonSerializable(explicitToJson: true, includeIfNull: false) class GetChatParams extends ApiParams { GetChatParamsSwitch lookIntoFuture; int? limit; int? lastKnownMessageId; int? lastCommonReadId; int? timeout; GetChatParamsSwitch? setReadMarker; GetChatParamsSwitch? includeLastKnown; GetChatParams({ required this.lookIntoFuture, this.limit, this.lastKnownMessageId, this.lastCommonReadId, this.timeout, this.setReadMarker, this.includeLastKnown }); factory GetChatParams.fromJson(Map json) => _$GetChatParamsFromJson(json); Map toJson() => _$GetChatParamsToJson(this); } enum GetChatParamsSwitch { @JsonValue(1) on, @JsonValue(0) off, }