toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0xb9b12c6c",
"flags": flags,
"blocked": blocked,
"phoneCallsAvailable": phoneCallsAvailable,
"phoneCallsPrivate": phoneCallsPrivate,
"canPinMessage": canPinMessage,
"hasScheduled": hasScheduled,
"videoCallsAvailable": videoCallsAvailable,
"voiceMessagesForbidden": voiceMessagesForbidden,
"translationsDisabled": translationsDisabled,
"storiesPinnedAvailable": storiesPinnedAvailable,
"blockedMyStoriesFrom": blockedMyStoriesFrom,
"wallpaperOverridden": wallpaperOverridden,
"id": id,
"about": about,
"settings": settings,
"personalPhoto": personalPhoto,
"profilePhoto": profilePhoto,
"fallbackPhoto": fallbackPhoto,
"notifySettings": notifySettings,
"botInfo": botInfo,
"pinnedMsgId": pinnedMsgId,
"commonChatsCount": commonChatsCount,
"folderId": folderId,
"ttlPeriod": ttlPeriod,
"themeEmoticon": themeEmoticon,
"privateForwardName": privateForwardName,
"botGroupAdminRights": botGroupAdminRights,
"botBroadcastAdminRights": botBroadcastAdminRights,
"premiumGifts": premiumGifts,
"wallpaper": wallpaper,
"stories": stories,
};
// Finished toJson.
return returnValue;
}