constructor()

in packages/azure-kusto-ingest/src/status.ts [17:29]


    constructor(raw: any, obj: any, extraProps: string[] | null) {
        let props: string[] = ["OperationId", "Database", "Table", "IngestionSourceId", "IngestionSourcePath", "RootActivityId"];

        if (extraProps && extraProps.length > 0) {
            props = props.concat(extraProps);
        }

        const _obj: Record<string, any> = obj || JSON.parse(raw || JSON.stringify(raw));

        for (const prop of props) {
            this[prop] = _obj[prop];
        }
    }