// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'chat_state.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_ChatState _$ChatStateFromJson(Map<String, dynamic> json) => _ChatState(
  currentToken: json['currentToken'] as String? ?? '',
  chatResponse: json['chatResponse'] == null
      ? null
      : GetChatResponse.fromJson(json['chatResponse'] as Map<String, dynamic>),
  referenceMessageId: (json['referenceMessageId'] as num?)?.toInt(),
  hasMoreOld: json['hasMoreOld'] as bool? ?? true,
  isLoadingOlder: json['isLoadingOlder'] as bool? ?? false,
);

Map<String, dynamic> _$ChatStateToJson(_ChatState instance) =>
    <String, dynamic>{
      'currentToken': instance.currentToken,
      'chatResponse': instance.chatResponse,
      'referenceMessageId': instance.referenceMessageId,
      'hasMoreOld': instance.hasMoreOld,
      'isLoadingOlder': instance.isLoadingOlder,
    };
