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