webhookToolApiSchemaConfigInputMethodListToJson function

List<String> webhookToolApiSchemaConfigInputMethodListToJson(
  1. List<WebhookToolApiSchemaConfigInputMethod>? webhookToolApiSchemaConfigInputMethod
)

Implementation

List<String> webhookToolApiSchemaConfigInputMethodListToJson(
    List<enums.WebhookToolApiSchemaConfigInputMethod>?
        webhookToolApiSchemaConfigInputMethod) {
  if (webhookToolApiSchemaConfigInputMethod == null) {
    return [];
  }

  return webhookToolApiSchemaConfigInputMethod.map((e) => e.value!).toList();
}