19 lines
495 B
Dart
19 lines
495 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
import '../../../../../api/marianumcloud/talk/chat/get_chat_response.dart';
|
|
|
|
part 'chat_state.freezed.dart';
|
|
part 'chat_state.g.dart';
|
|
|
|
@freezed
|
|
abstract class ChatState with _$ChatState {
|
|
const factory ChatState({
|
|
@Default('') String currentToken,
|
|
GetChatResponse? chatResponse,
|
|
int? referenceMessageId,
|
|
}) = _ChatState;
|
|
|
|
factory ChatState.fromJson(Map<String, Object?> json) =>
|
|
_$ChatStateFromJson(json);
|
|
}
|