from typing import List
from typing import Dict


def to_dict(args: List[Dict]) -> Dict:
    """Convert a list of serialized key-value pairs into a dictionary that maps
    the keys to their values.

    Parameters
    ----------
    args: list
        List of dictionary serializations for key-value pairs.

    Returns
    -------
    dict
    """
    return {a['key']: a['value'] for a in args}