public static bool PossuiContexto(this WebhookRequest webhook, string contexto) { return webhook.ObterContextos().Any(x => x.ContextName.ContextId.Contains(contexto)) }
public static string ObterParametroContexto(this WebhookRequest webhook, string field) { return(webhook.ObterContextos().First().Parameters.Fields[field].ListValue.Values[0].StringValue); }