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