code: def to_dict(self):
          
          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
docs: Constructs an dictionary representation of the Identity Object to be used in serializing to JSON
  
          :return: dict representing the object