Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Model, attr } from "redux-orm";
- export default class Account extends Model {
- static get fields() {
- return {
- id: attr(),
- name: attr(),
- financialInstitution: attr(),
- balance: attr(),
- };
- }
- static parse( accountData ) {
- return this.upsert( accountData );
- }
- toJSON() {
- return { ...this.ref };
- }
- }
- Account.modelName = 'Account';
Add Comment
Please, Sign In to add comment