def _recipient_to_cloud(self, recipient):
data = None<EOL>if recipient:<EOL><INDENT>data = {self._cc('<STR_LIT>'): {<EOL>self._cc('<STR_LIT:address>'): recipient.address}}<EOL>if recipient.name:<EOL><INDENT>data[self._cc('<STR_LIT>')][<EOL>self._cc('<STR_LIT:name>')] = recipient.name<EOL><DEDENT><DEDENT>return data<EOL>
Transforms a Recipient object to a cloud dict