Provide the user and message classes in JSON using the DjangoRestFramework's ModelSerializer class.