toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0xc9d31138",
"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,
};
// Finished toJson.
return returnValue;
}