toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': 'a04e8d3a',
'\$name': 'ChannelFull',
'flags': flags,
'canViewParticipants': canViewParticipants,
'canSetUsername': canSetUsername,
'canSetStickers': canSetStickers,
'hiddenPrehistory': hiddenPrehistory,
'canSetLocation': canSetLocation,
'hasScheduled': hasScheduled,
'canViewStats': canViewStats,
'blocked': blocked,
'flags2': flags2,
'canDeleteChannel': canDeleteChannel,
'antispam': antispam,
'participantsHidden': participantsHidden,
'translationsDisabled': translationsDisabled,
'storiesPinnedAvailable': storiesPinnedAvailable,
'viewForumAsMessages': viewForumAsMessages,
'restrictedSponsored': restrictedSponsored,
'canViewRevenue': canViewRevenue,
'paidMediaAllowed': paidMediaAllowed,
'canViewStarsRevenue': canViewStarsRevenue,
'paidReactionsAvailable': paidReactionsAvailable,
'stargiftsAvailable': stargiftsAvailable,
'paidMessagesAvailable': paidMessagesAvailable,
'id': id,
'about': about,
'participantsCount': participantsCount,
'adminsCount': adminsCount,
'kickedCount': kickedCount,
'bannedCount': bannedCount,
'onlineCount': onlineCount,
'readInboxMaxId': readInboxMaxId,
'readOutboxMaxId': readOutboxMaxId,
'unreadCount': unreadCount,
'chatPhoto': chatPhoto,
'notifySettings': notifySettings,
'exportedInvite': exportedInvite,
'botInfo': botInfo,
'migratedFromChatId': migratedFromChatId,
'migratedFromMaxId': migratedFromMaxId,
'pinnedMsgId': pinnedMsgId,
'stickerset': stickerset,
'availableMinId': availableMinId,
'folderId': folderId,
'linkedChatId': linkedChatId,
'location': location,
'slowmodeSeconds': slowmodeSeconds,
'slowmodeNextSendDate': slowmodeNextSendDate?.toIso8601String(),
'statsDc': statsDc,
'pts': pts,
'call': call,
'ttlPeriod': ttlPeriod,
'pendingSuggestions': pendingSuggestions,
'groupcallDefaultJoinAs': groupcallDefaultJoinAs,
'themeEmoticon': themeEmoticon,
'requestsPending': requestsPending,
'recentRequesters': recentRequesters,
'defaultSendAs': defaultSendAs,
'availableReactions': availableReactions,
'reactionsLimit': reactionsLimit,
'stories': stories,
'wallpaper': wallpaper,
'boostsApplied': boostsApplied,
'boostsUnrestrict': boostsUnrestrict,
'emojiset': emojiset,
'botVerification': botVerification,
'stargiftsCount': stargiftsCount,
'sendPaidMessagesStars': sendPaidMessagesStars,
'mainTab': mainTab,
'guardBotId': guardBotId,
};
// Finished toJson.
return returnValue;
}