<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)