webhookTypeNullableListFromJson function
List<WebhookType> ?
webhookTypeNullableListFromJson(
- List? webhookType, [
- List<
WebhookType> ? defaultValue
Implementation
List<enums.WebhookType>? webhookTypeNullableListFromJson(
List? webhookType, [
List<enums.WebhookType>? defaultValue,
]) {
if (webhookType == null) {
return defaultValue;
}
return webhookType.map((e) => webhookTypeFromJson(e.toString())).toList();
}