Magek Framework
    Preparing search index...

    Function createInstances

    • Creates an array of instances of the given class from the given array of raw objects.

      Type Parameters

      • T

      Parameters

      • instanceClass: Class<T>

        The class of the instances to create

      • rawObjects: Record<string, any>[]

        The array of raw objects to use as source

      Returns T[]

      An array of instances of the given class