webhookTypeListFromJson function

List<WebhookType> webhookTypeListFromJson(
  1. List? webhookType, [
  2. List<WebhookType>? defaultValue
])

Implementation

List<enums.WebhookType> webhookTypeListFromJson(
  List? webhookType, [
  List<enums.WebhookType>? defaultValue,
]) {
  if (webhookType == null) {
    return defaultValue ?? [];
  }

  return webhookType.map((e) => webhookTypeFromJson(e.toString())).toList();
}