Generate serializers for models.