toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    '\$hash': 'cc1a241e',
    '\$name': 'Config',
    'flags': flags,
    'defaultP2pContacts': defaultP2pContacts,
    'preloadFeaturedStickers': preloadFeaturedStickers,
    'revokePmInbox': revokePmInbox,
    'blockedMode': blockedMode,
    'forceTryIpv6': forceTryIpv6,
    'date': date.toIso8601String(),
    'expires': expires.toIso8601String(),
    'testMode': testMode,
    'thisDc': thisDc,
    'dcOptions': dcOptions,
    'dcTxtDomainName': dcTxtDomainName,
    'chatSizeMax': chatSizeMax,
    'megagroupSizeMax': megagroupSizeMax,
    'forwardedCountMax': forwardedCountMax,
    'onlineUpdatePeriodMs': onlineUpdatePeriodMs,
    'offlineBlurTimeoutMs': offlineBlurTimeoutMs,
    'offlineIdleTimeoutMs': offlineIdleTimeoutMs,
    'onlineCloudTimeoutMs': onlineCloudTimeoutMs,
    'notifyCloudDelayMs': notifyCloudDelayMs,
    'notifyDefaultDelayMs': notifyDefaultDelayMs,
    'pushChatPeriodMs': pushChatPeriodMs,
    'pushChatLimit': pushChatLimit,
    'editTimeLimit': editTimeLimit,
    'revokeTimeLimit': revokeTimeLimit,
    'revokePmTimeLimit': revokePmTimeLimit,
    'ratingEDecay': ratingEDecay,
    'stickersRecentLimit': stickersRecentLimit,
    'channelsReadMediaPeriod': channelsReadMediaPeriod,
    'tmpSessions': tmpSessions,
    'callReceiveTimeoutMs': callReceiveTimeoutMs,
    'callRingTimeoutMs': callRingTimeoutMs,
    'callConnectTimeoutMs': callConnectTimeoutMs,
    'callPacketTimeoutMs': callPacketTimeoutMs,
    'meUrlPrefix': meUrlPrefix,
    'autoupdateUrlPrefix': autoupdateUrlPrefix,
    'gifSearchUsername': gifSearchUsername,
    'venueSearchUsername': venueSearchUsername,
    'imgSearchUsername': imgSearchUsername,
    'staticMapsProvider': staticMapsProvider,
    'captionLengthMax': captionLengthMax,
    'messageLengthMax': messageLengthMax,
    'webfileDcId': webfileDcId,
    'suggestedLangCode': suggestedLangCode,
    'langPackVersion': langPackVersion,
    'baseLangPackVersion': baseLangPackVersion,
    'reactionsDefault': reactionsDefault,
    'autologinToken': autologinToken,
  };

  // Finished toJson.
  return returnValue;
}