toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '13704a7c',
'\$name': 'MessagesForwardMessages',
'flags': flags,
'silent': silent,
'background': background,
'withMyScore': withMyScore,
'dropAuthor': dropAuthor,
'dropMediaCaptions': dropMediaCaptions,
'noforwards': noforwards,
'allowPaidFloodskip': allowPaidFloodskip,
'fromPeer': fromPeer,
'id': id,
'randomId': randomId,
'toPeer': toPeer,
'topMsgId': topMsgId,
'replyTo': replyTo,
'scheduleDate': scheduleDate?.toIso8601String(),
'scheduleRepeatPeriod': scheduleRepeatPeriod,
'sendAs': sendAs,
'quickReplyShortcut': quickReplyShortcut,
'effect': effect,
'videoTimestamp': videoTimestamp,
'allowPaidStars': allowPaidStars,
'suggestedPost': suggestedPost,
};
// Finished toJson.
return returnValue;
}