webhookOperationListFromJson function
List<WebhookOperation>
webhookOperationListFromJson(
- List? webhookOperation, [
- 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();
}