toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '06cbe645',
'\$name': 'UserFull',
'flags': flags,
'blocked': blocked,
'phoneCallsAvailable': phoneCallsAvailable,
'phoneCallsPrivate': phoneCallsPrivate,
'canPinMessage': canPinMessage,
'hasScheduled': hasScheduled,
'videoCallsAvailable': videoCallsAvailable,
'voiceMessagesForbidden': voiceMessagesForbidden,
'translationsDisabled': translationsDisabled,
'storiesPinnedAvailable': storiesPinnedAvailable,
'blockedMyStoriesFrom': blockedMyStoriesFrom,
'wallpaperOverridden': wallpaperOverridden,
'contactRequirePremium': contactRequirePremium,
'readDatesPrivate': readDatesPrivate,
'flags2': flags2,
'sponsoredEnabled': sponsoredEnabled,
'canViewRevenue': canViewRevenue,
'botCanManageEmojiStatus': botCanManageEmojiStatus,
'displayGiftsButton': displayGiftsButton,
'noforwardsMyEnabled': noforwardsMyEnabled,
'noforwardsPeerEnabled': noforwardsPeerEnabled,
'unofficialSecurityRisk': unofficialSecurityRisk,
'id': id,
'about': about,
'settings': settings,
'personalPhoto': personalPhoto,
'profilePhoto': profilePhoto,
'fallbackPhoto': fallbackPhoto,
'notifySettings': notifySettings,
'botInfo': botInfo,
'pinnedMsgId': pinnedMsgId,
'commonChatsCount': commonChatsCount,
'folderId': folderId,
'ttlPeriod': ttlPeriod,
'theme': theme,
'privateForwardName': privateForwardName,
'botGroupAdminRights': botGroupAdminRights,
'botBroadcastAdminRights': botBroadcastAdminRights,
'wallpaper': wallpaper,
'stories': stories,
'businessWorkHours': businessWorkHours,
'businessLocation': businessLocation,
'businessGreetingMessage': businessGreetingMessage,
'businessAwayMessage': businessAwayMessage,
'businessIntro': businessIntro,
'birthday': birthday,
'personalChannelId': personalChannelId,
'personalChannelMessage': personalChannelMessage,
'stargiftsCount': stargiftsCount,
'starrefProgram': starrefProgram,
'botVerification': botVerification,
'sendPaidMessagesStars': sendPaidMessagesStars,
'disallowedGifts': disallowedGifts,
'starsRating': starsRating,
'starsMyPendingRating': starsMyPendingRating,
'starsMyPendingRatingDate': starsMyPendingRatingDate?.toIso8601String(),
'mainTab': mainTab,
'savedMusic': savedMusic,
'note': note,
'botManagerId': botManagerId,
};
// Finished toJson.
return returnValue;
}