fix compile

This commit is contained in:
Simon Larsen 2022-12-17 13:11:15 +05:30
parent 2fc8778e53
commit b81e4171bb
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -6,10 +6,11 @@ import Name from 'Common/Types/Name';
import { DASHBOARD_URL } from 'CommonUI/src/Config';
import { JSONObject } from 'Common/Types/JSON';
import User from 'Model/Models/User';
import JSONFunctions from 'Common/Types/JSONFunctions';
export default abstract class LoginUtil {
public static login(value: JSONObject): void {
const user: User = User.fromJSON(
const user: User = JSONFunctions.fromJSON(
value['user'] as JSONObject,
User
) as User;