Guest User

Untitled

a guest
Jul 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import { Model, attr } from "redux-orm";
  2.  
  3. export default class Account extends Model {
  4. static get fields() {
  5. return {
  6. id: attr(),
  7. name: attr(),
  8. financialInstitution: attr(),
  9. balance: attr(),
  10. };
  11. }
  12.  
  13. static parse( accountData ) {
  14. return this.upsert( accountData );
  15. }
  16.  
  17. toJSON() {
  18. return { ...this.ref };
  19. }
  20. }
  21. Account.modelName = 'Account';
Add Comment
Please, Sign In to add comment