def unroll_props()

in ShortHand/lambda/convert.py [0:0]


def unroll_props(rolled):
    props = {}

    for key, value in rolled.items():
        key_parts = key.split(".")

        current = props

        for part in key_parts[:-1]:
            if part not in current:
                current[part] = {}
                current = current[part]

        current[key_parts[-1]] = handle_value(value)

    return props