code: def to_json(self, is_admin=False):
          
          if is_admin:
              return {
                  'accountId': self.account_id,
                  'accountName': self.account_name,
                  'accountType': self.account_type,
                  'contacts': self.contacts,
                  'enabled': True if self.enabled == 1 else False,
                  'requiredRoles': self.required_roles,
                  'properties': {to_camelcase(prop.name): prop.value for prop in self.account.properties}
              }
          else:
              return {
                  'accountId': self.account_id,
                  'accountName': self.account_name,
                  'contacts': self.contacts
              }
docs: Returns a dict representation of the object
  
          Args:
              is_admin (`bool`): If true, include information about the account that should be avaiable only to admins
  
          Returns:
              `dict`