convert_list_of_dict()
Convert a list of dictionaries to a dictionary with possible inversion.
Usage
convert_list_of_dict(
list_of_dict,
key,
value,
invert=False,
)Parameters
list_of_dict: list-
The list of dictionaries to convert.
key: str-
The key.
value: str-
The value.
invert: bool = False- False. Default is False.
Returns
dict- A dictionary with given keys and values.