I would write this more generically so we don't have to update this all the time as we add new serializers.