def serialize(self, **result):
    result = super(ProxyMixin, self).serialize(**result)
    result['userAgent'] = self.userAgent
    result['proxyType'] = self.proxyType
    result['proxyAddress'] = self.proxyAddress
    result['proxyPort'] = self.proxyPort
    if self.proxyLogin:
        result['proxyLogin'] = self.proxyLogin
        result['proxyPassword'] = self.proxyPassword
    if self.cookies:
        result['cookies'] = self.cookies
    return result
def serialize(self, **result):
    result = super(ProxyMixin, self).serialize(**result)
    result['userAgent'] = self.userAgent
    result['proxyType'] = self.proxyType
    result['proxyAddress'] = self.proxyAddress
    result['proxyPort'] = self.proxyPort
    if self.proxyLogin:
        result['proxyLogin'] = self.proxyLogin
        result['proxyPassword'] = self.proxyPassword
    if self.cookies:
        result['cookies'] = self.cookies
    return result