419181 {
419182 auto type = deserializer.ReadProperty<ResultModifierType>(100, "type");
419183 unique_ptr<ResultModifier> result;
419184 switch (type) {
419185 case ResultModifierType::DISTINCT_MODIFIER:
419186 result = DistinctModifier::Deserialize(deserializer);
419187 break;
419188 case ResultModifierType::LIMIT_MODIFIER:
419189 result = LimitModifier::Deserialize(deserializer);
419190 break;
419191 case ResultModifierType::LIMIT_PERCENT_MODIFIER:
419192 result = LimitPercentModifier::Deserialize(deserializer);
419193 break;
419194 case ResultModifierType::ORDER_MODIFIER:
419195 result = OrderModifier::Deserialize(deserializer);
419196 break;
419197 default:
419198 throw SerializationException("Unsupported type for deserialization of ResultModifier!");
419199 }
419200 return result;
419201}