webhookTypeListToJson function

List<String> webhookTypeListToJson(
  1. List<WebhookType>? webhookType
)

Implementation

List<String> webhookTypeListToJson(List<enums.WebhookType>? webhookType) {
  if (webhookType == null) {
    return [];
  }

  return webhookType.map((e) => enums.$WebhookTypeMap[e]!).toList();
}