webhookEnvironmentValuesListFromJson function
List<WebhookEnvironmentValues>
webhookEnvironmentValuesListFromJson(
- List? webhookEnvironmentValues, [
- List<
WebhookEnvironmentValues> ? defaultValue
Implementation
List<enums.WebhookEnvironmentValues> webhookEnvironmentValuesListFromJson(
List? webhookEnvironmentValues, [
List<enums.WebhookEnvironmentValues>? defaultValue,
]) {
if (webhookEnvironmentValues == null) {
return defaultValue ?? [];
}
return webhookEnvironmentValues
.map((e) => webhookEnvironmentValuesFromJson(e.toString()))
.toList();
}