docs: def to_base64(self, skip=()):
          """
          Construct from base64-encoded JSON.
          """
          return base64.b64encode(
              ensure_bytes(
                  self.to_json(skip=skip),
                  encoding='utf-8',
              )
          )