@@ -111,7 +111,7 @@ export class LanguageSetting {
111111 } ) ;
112112 }
113113
114- public toJSON ( ) : LanguageSettingData {
114+ public toLanguageSettingData ( ) : LanguageSettingData {
115115 return this . data ;
116116 }
117117}
@@ -144,7 +144,7 @@ export class PortalSettings {
144144 continue ;
145145 }
146146 firstSdkTemplateId ??= templateId ;
147- languageSettings [ templateId ] = LanguageSetting . from ( languageSettings [ templateId ] ) . withAiIntegrationsEnabled ( ) . toJSON ( ) ;
147+ languageSettings [ templateId ] = LanguageSetting . from ( languageSettings [ templateId ] ) . withAiIntegrationsEnabled ( ) . toLanguageSettingData ( ) ;
148148 }
149149
150150 return new PortalSettings ( {
@@ -154,7 +154,7 @@ export class PortalSettings {
154154 } ) ;
155155 }
156156
157- public toJSON ( ) : PortalSettingsData {
157+ public toPortalSettingsData ( ) : PortalSettingsData {
158158 return this . data ;
159159 }
160160}
@@ -171,7 +171,7 @@ export class BuildConfig {
171171 }
172172
173173 // Used implicitly by JSON.stringify when the config is written back to disk.
174- public toJSON ( ) : BuildConfigData {
174+ public toBuildConfigDData ( ) : BuildConfigData {
175175 return this . data ;
176176 }
177177
@@ -222,7 +222,7 @@ export class BuildConfig {
222222 baseUrl,
223223 portalSettings : PortalSettings . from ( portal . portalSettings )
224224 . withAiIntegrations ( Object . keys ( portal . languageConfig ) )
225- . toJSON ( )
225+ . toPortalSettingsData ( )
226226 }
227227 } ) ;
228228 }
@@ -243,7 +243,7 @@ export class BuildConfig {
243243
244244 const portal = this . data . generatePortal ! ;
245245 const updatedPortal : PortalConfig = portal . portalSettings ?. baseUrl
246- ? { ...portal , portalSettings : PortalSettings . from ( portal . portalSettings ) . withBaseUrl ( serveUrl ) . toJSON ( ) }
246+ ? { ...portal , portalSettings : PortalSettings . from ( portal . portalSettings ) . withBaseUrl ( serveUrl ) . toPortalSettingsData ( ) }
247247 : { ...portal , baseUrl : serveUrl . toString ( ) } ;
248248 return ok ( new BuildConfig ( { ...this . data , generatePortal : updatedPortal } ) ) ;
249249 }
0 commit comments