from typing import Dict


def decode_internal_tx(raw_internal_tx: bytes) -> Dict:
    """
    Decodes bytes representation of an internal transaction into a dictionary.

    Args:
        raw_internal_tx: Bytes representing an internal transaction.

    Returns:
        Internal transaction in dictionary form.
    """
    internal_tx_items = raw_internal_tx.decode().split('\0')
    internal_tx = {}

    internal_tx['from'] = internal_tx_items[0]
    internal_tx['to'] = internal_tx_items[1]
    internal_tx['value'] = internal_tx_items[2]
    internal_tx['input'] = internal_tx_items[3]
    internal_tx['output'] = internal_tx_items[4]
    internal_tx['traceType'] = internal_tx_items[5]
    internal_tx['callType'] = internal_tx_items[6]
    internal_tx['rewardType'] = internal_tx_items[7]
    internal_tx['gas'] = internal_tx_items[8]
    internal_tx['gasUsed'] = internal_tx_items[9]
    internal_tx['transactionHash'] = internal_tx_items[10]
    internal_tx['timestamp'] = internal_tx_items[11]
    internal_tx['error'] = internal_tx_items[12]

    return internal_tx