def after_init_app(self, app: FlaskUnchained):
        """
        Configure the JSON encoder for Flask to be able to serialize Enums,
        LocalProxy objects, and SQLAlchemy models.
        """
        self.set_json_encoder(app)
        app.before_first_request(self.register_model_resources)
def after_init_app ( self , app : FlaskUnchained ) : self . set_json_encoder ( app ) app . before_first_request ( self . register_model_resources )
Configure the JSON encoder for Flask to be able to serialize Enums,
        LocalProxy objects, and SQLAlchemy models.