toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '8f9e6898',
'\$name': 'StoriesSendStory',
'flags': flags,
'pinned': pinned,
'noforwards': noforwards,
'fwdModified': fwdModified,
'peer': peer,
'media': media,
'mediaAreas': mediaAreas,
'caption': caption,
'entities': entities,
'privacyRules': privacyRules,
'randomId': randomId,
'period': period,
'fwdFromId': fwdFromId,
'fwdFromStory': fwdFromStory,
'albums': albums,
'music': music,
};
// Finished toJson.
return returnValue;
}