def to_dict(self):
        """
        Constructs an dictionary representation of the Identity Object to be used in serializing to JSON

        :return: dict representing the object
        """
        json_dict = {"apiKey": self.api_key,
                     "userArn": self.user_arn,
                     "cognitoAuthenticationType": self.cognito_authentication_type,
                     "caller": self.caller,
                     "userAgent": self.user_agent,
                     "user": self.user,
                     "cognitoIdentityPoolId": self.cognito_identity_pool_id,
                     "cognitoAuthenticationProvider": self.cognito_authentication_provider,
                     "sourceIp": self.source_ip,
                     "accountId": self.account_id
                     }

        return json_dict