webhookToolApiSchemaConfigInputMethodListFromJson function

List<WebhookToolApiSchemaConfigInputMethod> webhookToolApiSchemaConfigInputMethodListFromJson(
  1. List? webhookToolApiSchemaConfigInputMethod, [
  2. List<WebhookToolApiSchemaConfigInputMethod>? defaultValue
])

Implementation

List<enums.WebhookToolApiSchemaConfigInputMethod>
    webhookToolApiSchemaConfigInputMethodListFromJson(
  List? webhookToolApiSchemaConfigInputMethod, [
  List<enums.WebhookToolApiSchemaConfigInputMethod>? defaultValue,
]) {
  if (webhookToolApiSchemaConfigInputMethod == null) {
    return defaultValue ?? [];
  }

  return webhookToolApiSchemaConfigInputMethod
      .map((e) => webhookToolApiSchemaConfigInputMethodFromJson(e.toString()))
      .toList();
}