Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'messageText', if (extra != null) '@extra': extra, 'text': text, 'web_page': web_page }; }