public string CreateInfoPayload(UserTask task) { return(task.GetQualifier() switch { "WrongArticleQuantity" => task.GetFormFieldValue <string>("Text"), _ => throw new ArgumentException("User task is not of Info type") });