message: "success"
token: "xxx"
authUser: {id: "1", status: 1, email: "xxx",…}
models: {
App: [{id: "1", name: "x1"},{id: "2", name: "x2"}]
Location: [{id: "1", name: "y1"},{id: "2", name: "y2"}]
Project: [{id: "1", name: "z1"},{id: "2", name: "z2"}]
}
export default class AuthenticationResponseModel extends BaseModel {
public readonly message: string = '';
public readonly token: string | undefined = undefined;
public readonly authUser: AuthUserModel = AuthUserModel as any;
public readonly models: {
App: AppModel[];
} = { App: [AppModel as any] };
...
But if I take for example "App" out of the object and move it into the "root - level" it works exactly the same as with the "AuthUserModel".