toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': 'b1b8cc83',
'\$name': 'User',
'flags': flags,
'self': self,
'contact': contact,
'mutualContact': mutualContact,
'deleted': deleted,
'bot': bot,
'botChatHistory': botChatHistory,
'botNochats': botNochats,
'verified': verified,
'restricted': restricted,
'min': min,
'botInlineGeo': botInlineGeo,
'support': support,
'scam': scam,
'applyMinPhoto': applyMinPhoto,
'fake': fake,
'botAttachMenu': botAttachMenu,
'premium': premium,
'attachMenuEnabled': attachMenuEnabled,
'flags2': flags2,
'botCanEdit': botCanEdit,
'closeFriend': closeFriend,
'storiesHidden': storiesHidden,
'storiesUnavailable': storiesUnavailable,
'contactRequirePremium': contactRequirePremium,
'botBusiness': botBusiness,
'botHasMainApp': botHasMainApp,
'botForumView': botForumView,
'botForumCanManageTopics': botForumCanManageTopics,
'botCanManageBots': botCanManageBots,
'botGuestchat': botGuestchat,
'botGuard': botGuard,
'id': id,
'accessHash': accessHash,
'firstName': firstName,
'lastName': lastName,
'username': username,
'phone': phone,
'photo': photo,
'status': status,
'botInfoVersion': botInfoVersion,
'restrictionReason': restrictionReason,
'botInlinePlaceholder': botInlinePlaceholder,
'langCode': langCode,
'emojiStatus': emojiStatus,
'usernames': usernames,
'storiesMaxId': storiesMaxId,
'color': color,
'profileColor': profileColor,
'botActiveUsers': botActiveUsers,
'botVerificationIcon': botVerificationIcon,
'sendPaidMessagesStars': sendPaidMessagesStars,
'linkedCommunityId': linkedCommunityId,
};
// Finished toJson.
return returnValue;
}