LogTransformerTransformerConfigListToMap constructor

const LogTransformerTransformerConfigListToMap({
  1. Input<bool?>? flatten,
  2. Input<String?>? flattenedElement,
  3. required Input<String> key,
  4. required Input<String> source,
  5. Input<String?>? target,
  6. Input<String?>? valueKey,
})

Creates a new LogTransformerTransformerConfigListToMap. flatten Specifies whether the list will be flattened into single items. Defaults to false. flattenedElement Required if flatten is set to true. Specifies the element to keep. Allowed values are first and last. key Specifies the key of the field to be extracted as keys in the generated map. source Specifies the key in the log event that has a list of objects that will be converted to a map. target Specifies the key of the field that will hold the generated map. valueKey Specifies the values that will be extracted from the source objects and put into the values of the generated map. If omitted, original objects in the source list will be put into the values of the generated map.

Implementation

const LogTransformerTransformerConfigListToMap({
  this.flatten,
  this.flattenedElement,
  required this.key,
  required this.source,
  this.target,
  this.valueKey,
});