webhookToolApiSchemaConfigInputMethodNullableFromJson function

WebhookToolApiSchemaConfigInputMethod? webhookToolApiSchemaConfigInputMethodNullableFromJson(
  1. Object? webhookToolApiSchemaConfigInputMethod, [
  2. WebhookToolApiSchemaConfigInputMethod? defaultValue
])

Implementation

enums.WebhookToolApiSchemaConfigInputMethod?
    webhookToolApiSchemaConfigInputMethodNullableFromJson(
  Object? webhookToolApiSchemaConfigInputMethod, [
  enums.WebhookToolApiSchemaConfigInputMethod? defaultValue,
]) {
  if (webhookToolApiSchemaConfigInputMethod == null) {
    return null;
  }
  return enums.WebhookToolApiSchemaConfigInputMethod.values.firstWhereOrNull(
          (e) => e.value == webhookToolApiSchemaConfigInputMethod) ??
      defaultValue;
}