#42 wallet and plugged to the backend
This commit is contained in:
15
src/models/myUserModel.js
Normal file
15
src/models/myUserModel.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import UserTransactionsModel from "@/models/userTransactionsModel.js";
|
||||
|
||||
export default class MyUserModel
|
||||
{
|
||||
id = "";
|
||||
firstName = "";
|
||||
lastName = "";
|
||||
userName = "";
|
||||
totalBalance = "";
|
||||
userTransactions = new UserTransactionsModel()
|
||||
|
||||
static createFromApiResult(apiResult){
|
||||
return Object.assign(new MyUserModel(), apiResult);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user