webhookOperationListFromJson function

List<WebhookOperation> webhookOperationListFromJson(
  1. List? webhookOperation, [
  2. List<WebhookOperation>? defaultValue
])

Implementation

List<enums.WebhookOperation> webhookOperationListFromJson(
  List? webhookOperation, [
  List<enums.WebhookOperation>? defaultValue,
]) {
  if (webhookOperation == null) {
    return defaultValue ?? [];
  }

  return webhookOperation
      .map((e) => webhookOperationFromJson(e.toString()))
      .toList();
}