Base model class and in memory content serializer.