@hashgraph/solo
    Preparing search index...

    The ObjectMapper interface defines the methods for converting between plain javascript objects and class instances.

    This is an abstraction that allows the data layer to be decoupled from the underlying object mapper implementation.

    Implements

    Index

    Constructors

    Methods

    • Converts an array of instances of a class into an array of plain javascript objects.

      Type Parameters

      • T

      Parameters

      • data: T[]

        The array of object instances to be converted.

      Returns object[]

      ObjectMappingError if the mapping or a type conversion fails.