export class ListResponse { data: T[]; continuationToken: string; constructor(response: any, t: new (dataResponse: any) => T) { this.data = response.Data.map((dr) => new t(dr)); this.continuationToken = response.ContinuationToken; } }