44 lines
1.7 KiB
Dart
44 lines
1.7 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'getChatParams.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]!,
|
|
if (instance.limit case final value?) 'limit': value,
|
|
if (instance.lastKnownMessageId case final value?)
|
|
'lastKnownMessageId': value,
|
|
if (instance.lastCommonReadId case final value?)
|
|
'lastCommonReadId': value,
|
|
if (instance.timeout case final value?) 'timeout': value,
|
|
if (_$GetChatParamsSwitchEnumMap[instance.setReadMarker]
|
|
case final value?)
|
|
'setReadMarker': value,
|
|
if (_$GetChatParamsSwitchEnumMap[instance.includeLastKnown]
|
|
case final value?)
|
|
'includeLastKnown': value,
|
|
};
|
|
|
|
const _$GetChatParamsSwitchEnumMap = {
|
|
GetChatParamsSwitch.on: 1,
|
|
GetChatParamsSwitch.off: 0,
|
|
};
|