webhookToolApiSchemaConfigOutputMethodListToJson function

List<String> webhookToolApiSchemaConfigOutputMethodListToJson(
  1. List<WebhookToolApiSchemaConfigOutputMethod>? webhookToolApiSchemaConfigOutputMethod
)

Implementation

List<String> webhookToolApiSchemaConfigOutputMethodListToJson(
    List<enums.WebhookToolApiSchemaConfigOutputMethod>?
        webhookToolApiSchemaConfigOutputMethod) {
  if (webhookToolApiSchemaConfigOutputMethod == null) {
    return [];
  }

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