toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'messageCopyOptions',
if (extra != null) '@extra': extra,
'send_copy': send_copy,
'replace_caption': replace_caption,
'new_caption': new_caption
};
}