// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_chat_params.dart';

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

GetChatParams _$GetChatParamsFromJson(Map<String, dynamic> json) =>
    GetChatParams(
      lookIntoFuture: $enumDecode(
        _$GetChatParamsSwitchEnumMap,
        json['lookIntoFuture'],
      ),
      limit: (json['limit'] as num?)?.toInt(),
      lastKnownMessageId: (json['lastKnownMessageId'] as num?)?.toInt(),
      lastCommonReadId: (json['lastCommonReadId'] as num?)?.toInt(),
      timeout: (json['timeout'] as num?)?.toInt(),
      setReadMarker: $enumDecodeNullable(
        _$GetChatParamsSwitchEnumMap,
        json['setReadMarker'],
      ),
      includeLastKnown: $enumDecodeNullable(
        _$GetChatParamsSwitchEnumMap,
        json['includeLastKnown'],
      ),
    );

Map<String, dynamic> _$GetChatParamsToJson(
  GetChatParams instance,
) => <String, dynamic>{
  'lookIntoFuture': _$GetChatParamsSwitchEnumMap[instance.lookIntoFuture]!,
  'limit': ?instance.limit,
  'lastKnownMessageId': ?instance.lastKnownMessageId,
  'lastCommonReadId': ?instance.lastCommonReadId,
  'timeout': ?instance.timeout,
  'setReadMarker': ?_$GetChatParamsSwitchEnumMap[instance.setReadMarker],
  'includeLastKnown': ?_$GetChatParamsSwitchEnumMap[instance.includeLastKnown],
};

const _$GetChatParamsSwitchEnumMap = {
  GetChatParamsSwitch.on: 1,
  GetChatParamsSwitch.off: 0,
};
