webhookOperationNullableListFromJson function
List<WebhookOperation> ?
webhookOperationNullableListFromJson(
- List? webhookOperation, [
- List<
WebhookOperation> ? defaultValue
Implementation
List<enums.WebhookOperation>? webhookOperationNullableListFromJson(
List? webhookOperation, [
List<enums.WebhookOperation>? defaultValue,
]) {
if (webhookOperation == null) {
return defaultValue;
}
return webhookOperation
.map((e) => webhookOperationFromJson(e.toString()))
.toList();
}