@@ -20,7 +20,8 @@ class Project {
20
20
country ,
21
21
developer ,
22
22
averagePricePerTonneCentsUsd ,
23
- remainingMassG
23
+ remainingMassG ,
24
+ technologyType
24
25
) {
25
26
Project . initialize (
26
27
this ,
@@ -31,7 +32,8 @@ class Project {
31
32
country ,
32
33
developer ,
33
34
averagePricePerTonneCentsUsd ,
34
- remainingMassG
35
+ remainingMassG ,
36
+ technologyType
35
37
) ;
36
38
}
37
39
@@ -44,7 +46,8 @@ class Project {
44
46
country ,
45
47
developer ,
46
48
averagePricePerTonneCentsUsd ,
47
- remainingMassG
49
+ remainingMassG ,
50
+ technologyType
48
51
) {
49
52
obj [ 'id' ] = id ;
50
53
obj [ 'production' ] = production ;
@@ -54,6 +57,7 @@ class Project {
54
57
obj [ 'developer' ] = developer ;
55
58
obj [ 'average_price_per_tonne_cents_usd' ] = averagePricePerTonneCentsUsd ;
56
59
obj [ 'remaining_mass_g' ] = remainingMassG ;
60
+ obj [ 'technology_type' ] = technologyType ;
57
61
}
58
62
59
63
static constructFromObject ( data , obj ) {
@@ -136,15 +140,15 @@ class Project {
136
140
obj [ 'sdgs' ] = ApiClient . convertToType ( data [ 'sdgs' ] , [ Sdg ] ) ;
137
141
}
138
142
143
+ if ( data . hasOwnProperty ( 'tagline' ) ) {
144
+ obj [ 'tagline' ] = ApiClient . convertToType ( data [ 'tagline' ] , 'String' ) ;
145
+ }
146
+
139
147
if ( data . hasOwnProperty ( 'technology_type' ) ) {
140
148
obj [ 'technology_type' ] = TechnologyType . constructFromObject (
141
149
data [ 'technology_type' ]
142
150
) ;
143
151
}
144
-
145
- if ( data . hasOwnProperty ( 'tagline' ) ) {
146
- obj [ 'tagline' ] = ApiClient . convertToType ( data [ 'tagline' ] , 'String' ) ;
147
- }
148
152
}
149
153
return obj ;
150
154
}
@@ -182,8 +186,8 @@ Project.prototype['standard'] = undefined;
182
186
183
187
Project . prototype [ 'sdgs' ] = undefined ;
184
188
185
- Project . prototype [ 'technology_type' ] = undefined ;
186
-
187
189
Project . prototype [ 'tagline' ] = undefined ;
188
190
191
+ Project . prototype [ 'technology_type' ] = undefined ;
192
+
189
193
export default Project ;
0 commit comments