@@ -20,7 +20,8 @@ class Project {
2020 country ,
2121 developer ,
2222 averagePricePerTonneCentsUsd ,
23- remainingMassG
23+ remainingMassG ,
24+ technologyType
2425 ) {
2526 Project . initialize (
2627 this ,
@@ -31,7 +32,8 @@ class Project {
3132 country ,
3233 developer ,
3334 averagePricePerTonneCentsUsd ,
34- remainingMassG
35+ remainingMassG ,
36+ technologyType
3537 ) ;
3638 }
3739
@@ -44,7 +46,8 @@ class Project {
4446 country ,
4547 developer ,
4648 averagePricePerTonneCentsUsd ,
47- remainingMassG
49+ remainingMassG ,
50+ technologyType
4851 ) {
4952 obj [ 'id' ] = id ;
5053 obj [ 'production' ] = production ;
@@ -54,6 +57,7 @@ class Project {
5457 obj [ 'developer' ] = developer ;
5558 obj [ 'average_price_per_tonne_cents_usd' ] = averagePricePerTonneCentsUsd ;
5659 obj [ 'remaining_mass_g' ] = remainingMassG ;
60+ obj [ 'technology_type' ] = technologyType ;
5761 }
5862
5963 static constructFromObject ( data , obj ) {
@@ -136,15 +140,15 @@ class Project {
136140 obj [ 'sdgs' ] = ApiClient . convertToType ( data [ 'sdgs' ] , [ Sdg ] ) ;
137141 }
138142
143+ if ( data . hasOwnProperty ( 'tagline' ) ) {
144+ obj [ 'tagline' ] = ApiClient . convertToType ( data [ 'tagline' ] , 'String' ) ;
145+ }
146+
139147 if ( data . hasOwnProperty ( 'technology_type' ) ) {
140148 obj [ 'technology_type' ] = TechnologyType . constructFromObject (
141149 data [ 'technology_type' ]
142150 ) ;
143151 }
144-
145- if ( data . hasOwnProperty ( 'tagline' ) ) {
146- obj [ 'tagline' ] = ApiClient . convertToType ( data [ 'tagline' ] , 'String' ) ;
147- }
148152 }
149153 return obj ;
150154 }
@@ -182,8 +186,8 @@ Project.prototype['standard'] = undefined;
182186
183187Project . prototype [ 'sdgs' ] = undefined ;
184188
185- Project . prototype [ 'technology_type' ] = undefined ;
186-
187189Project . prototype [ 'tagline' ] = undefined ;
188190
191+ Project . prototype [ 'technology_type' ] = undefined ;
192+
189193export default Project ;
0 commit comments