suspend fun <T : Node> OptionalInput<List<TypeMappingInput>>.toMapping(typeRepository: GropiusRepository<T, String>, validator: suspend (T) -> Unit): Map<T, T?>

Transforms a list of gropius.dto.input.common.TypeMappingInput to a mapping using the provided typeRepository

Return

the generated mapping

Parameters

typeRepository

used to map ID to T

validator

used to validate the types

Type Parameters

T

the type of the returned types