ng-xtend API documentation
    Preparing search index...

    Class MappingHelper<FROM, TO>

    Maps properties between two types (FROM -> TO and TO -> FROM). Supports bidirectional property mapping with automatic pass-through for unmapped properties.

    Type Parameters

    • FROM
    • TO

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    mapFromTo: Map<keyof FROM, keyof TO> = ...

    Forward mapping: FROM property -> TO property

    mapToFrom: Map<keyof TO, keyof FROM> = ...

    Reverse mapping: TO property -> FROM property

    Methods

    • Maps a TO value back to its FROM representation

      Parameters

      • value: TO | null | undefined

        The TO value to map from

      • OptionaloldFrom: FROM | null

        Optional existing FROM value to extend

      Returns FROM | null | undefined

      The mapped FROM value

    • Maps a FROM value to its TO representation

      Parameters

      • value: FROM | null | undefined

        The FROM value to map

      • OptionaloldTo: TO | null

        Optional existing TO value to extend

      Returns TO | null | undefined

      The mapped TO value