@dvxch/yandex-music
    Preparing search index...

    Function deRecord

    • Deserialize a map of raw JSON objects (keyed by string, e.g. by language) into a record of typed models. Entries the deserializer rejects are skipped.

      Type Parameters

      • T

        The model type produced.

      Parameters

      • deJson: DeJson<T>

        The per-model deserializer.

      • data: JSONValue | undefined

        A raw JSON object, or any value (returns undefined otherwise).

      • Optionalclient: Client

        The owning Client, propagated to each model.

      Returns Record<string, T> | undefined

      The record of deserialized models, or undefined when empty/not an object.