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