docs: def _user_raw_from_login_content(login_content):
      """Returns a User instance with appropriate raw data parsed from login response content"""
      matching_keys = [
          'displayName',
          'lastLogin',
          'active',
          'name',
          'isMe',
          'lastPasswordChangedDate',
          'passwordResetRequired',
          'groups',
          'roles',
          'email',
          'isAdmin',
          'createdDate',
          'modifiedDate',
          'createdByUser',
          'modifiedByUser',
          'userName',
          'id',
          'disabled'
      ]
  
      raw_data = {
          '$type': User._type,
      }
  
      for key in matching_keys:
          if key in login_content:
              raw_data[key] = login_content[key]
  
      return raw_data