import { Class } from '@boostercloud/framework-types' ; export function createInstance < T > ( instanceClass , rawObject ) { const instance = new instanceClass ( ) ; Object . assign ( instance , rawObject ) ; return instance ; } export function createInstances < T > ( instanceClass , rawObjects ) { return rawObjects . map ( ( rawObject ) => createInstance ( instanceClass , rawObject ) ) ; }