• Converts a Map instance into an object with corresponding keys and values or null if the map has no entries.

    Parameters

    • map: Map<string, unknown>

    Returns Record<string, unknown> | null