import uuid from 'uuid';
import { Record as record } from 'immutable';

export class CardModel extends record({
  name: '',
  mana: null,
  attack: null,
  defense: null,
  portrait: null,
}) {
  constructor(obj) {
    super(obj);
    this.id = uuid.v4();
  }
}

@@ -1,12 +1,15 @@
+// 
 import uuid 
@@ -21,16 +21,16 @@
 'uuid';%0A
-
 import %7B
@@ -80,12 +80,12 @@
 rt c
-lass
+onst
  Car
@@ -95,15 +95,9 @@
 del 
-extends
+=
  rec
@@ -102,16 +102,28 @@
 ecord(%7B%0A
+  id: null,%0A
   name: 
@@ -197,75 +197,6 @@
 ,%0A%7D)
- %7B%0A  constructor(obj) %7B%0A    super(obj);%0A    this.id = uuid.v4();%0A  %7D%0A%7D
+;
 %0A

Remove id from Record and add id field