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