enumValues

inline fun <E : Enum<E>> StringValuesBuilder.enumValues(name: String? = null, noinline toEnum: (String) -> E? = { enumValueOf<E>(it) }, noinline toString: (E) -> String = { it.toString() }): NamedValuePropertyProvider<List<E>?>(source)

Creates an optional parameter of type List<E> with the given name in this StringValuesBuilder instance.

If no name is provided, the property's name will be used.

Parameters

toEnum

Method to use when converting from its String form to Enum.

toString

Method to use when converting from its Enum form to String.