webhookToolApiSchemaConfigOutputMethodListFromJson function

List<WebhookToolApiSchemaConfigOutputMethod> webhookToolApiSchemaConfigOutputMethodListFromJson(
  1. List? webhookToolApiSchemaConfigOutputMethod, [
  2. List<WebhookToolApiSchemaConfigOutputMethod>? defaultValue
])

Implementation

List<enums.WebhookToolApiSchemaConfigOutputMethod>
    webhookToolApiSchemaConfigOutputMethodListFromJson(
  List? webhookToolApiSchemaConfigOutputMethod, [
  List<enums.WebhookToolApiSchemaConfigOutputMethod>? defaultValue,
]) {
  if (webhookToolApiSchemaConfigOutputMethod == null) {
    return defaultValue ?? [];
  }

  return webhookToolApiSchemaConfigOutputMethod
      .map((e) => webhookToolApiSchemaConfigOutputMethodFromJson(e.toString()))
      .toList();
}