webhookToolApiSchemaConfigInputMethodNullableListFromJson function

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

Implementation

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

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