webhookToolApiSchemaConfigInputMethodNullableFromJson function
WebhookToolApiSchemaConfigInputMethod?
webhookToolApiSchemaConfigInputMethodNullableFromJson(
- Object? webhookToolApiSchemaConfigInputMethod, [
- 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;
}