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