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': '2633421b',
    '\$name': 'ChatFull',
    'flags': flags,
    'canSetUsername': canSetUsername,
    'hasScheduled': hasScheduled,
    'translationsDisabled': translationsDisabled,
    'id': id,
    'about': about,
    'participants': participants,
    'chatPhoto': chatPhoto,
    'notifySettings': notifySettings,
    'exportedInvite': exportedInvite,
    'botInfo': botInfo,
    'pinnedMsgId': pinnedMsgId,
    'folderId': folderId,
    'call': call,
    'ttlPeriod': ttlPeriod,
    'groupcallDefaultJoinAs': groupcallDefaultJoinAs,
    'themeEmoticon': themeEmoticon,
    'requestsPending': requestsPending,
    'recentRequesters': recentRequesters,
    'availableReactions': availableReactions,
    'reactionsLimit': reactionsLimit,
  };

  // Finished toJson.
  return returnValue;
}