code: def as_extension(self):
          
          return x509.extensions.Extension(oid=self.oid, critical=self.critical, value=self.extension_type)
docs: This extension as :py:class:`~cg:cryptography.x509.ExtensionType`.