+12
-0
lines changedFilter options
+12
-0
lines changed Original file line number Diff line number Diff line change
@@ -12,6 +12,10 @@ export default class Mech extends Model {
12
12
static parse(mechData) {
13
13
return this.create(mechData);
14
14
}
15
+
16
+
toJSON() {
17
+
return {...this.ref};
18
+
}
15
19
}
16
20
17
21
Mech.modelName = "Mech";
Original file line number Diff line number Diff line change
@@ -4,6 +4,10 @@ export default class MechDesign extends Model {
4
4
static parse(designData) {
5
5
return this.create(designData);
6
6
}
7
+
8
+
toJSON() {
9
+
return {...this.ref};
10
+
}
7
11
}
8
12
9
13
MechDesign.modelName = "MechDesign";
Original file line number Diff line number Diff line change
@@ -17,6 +17,10 @@ export default class Pilot extends Model {
17
17
// class itself, not an instance
18
18
return this.create(pilotData);
19
19
}
20
+
21
+
toJSON() {
22
+
return {...this.ref};
23
+
}
20
24
}
21
25
22
26
Pilot.modelName = "Pilot";
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4