@@ -167,6 +167,9 @@ class SDKPublishModel extends PrivacyBase {
167
167
/// a custom id. This map will modify that usage without being destructive.
168
168
final Map <String , String > layoutIDMap;
169
169
170
+ /// A list of layout ids that are explicitly disabled from the server's side.
171
+ final List <String > disabledLayouts;
172
+
170
173
static Map <String , dynamic > serializeLookupMapFonts (
171
174
LookupMap <SDKPublishFont > map) =>
172
175
map.dataMap.map ((key, value) => MapEntry (key, value.toJson ()));
@@ -260,6 +263,7 @@ class SDKPublishModel extends PrivacyBase {
260
263
this .entryPageId,
261
264
this .entryCanvasId,
262
265
DateTime ? lastUpdated,
266
+ List <String >? disabledLayouts,
263
267
264
268
// Privacy
265
269
required super .teams,
@@ -286,7 +290,8 @@ class SDKPublishModel extends PrivacyBase {
286
290
(lookupMap: layoutIDMap ?? {}, dataMap: {}),
287
291
),
288
292
apis = apis ?? {},
289
- lastUpdated = lastUpdated ?? DateTime .now ();
293
+ lastUpdated = lastUpdated ?? DateTime .now (),
294
+ disabledLayouts = disabledLayouts ?? [];
290
295
291
296
/// Creates a new instance of [SDKPublishModel] with privacy inherited from
292
297
/// another [PrivacyBase] .
@@ -306,6 +311,7 @@ class SDKPublishModel extends PrivacyBase {
306
311
this .entryPageId,
307
312
this .entryCanvasId,
308
313
DateTime ? lastUpdated,
314
+ List <String >? disabledLayouts,
309
315
310
316
// Privacy
311
317
required super .privacy,
@@ -326,6 +332,7 @@ class SDKPublishModel extends PrivacyBase {
326
332
),
327
333
lastUpdated = lastUpdated ?? DateTime .now (),
328
334
apis = apis ?? {},
335
+ disabledLayouts = disabledLayouts ?? [],
329
336
super .private ();
330
337
331
338
/// Creates a new instance of [SDKPublishModel] from a JSON map.
@@ -360,6 +367,7 @@ class SDKPublishModel extends PrivacyBase {
360
367
String ? entryPageId,
361
368
String ? entryCanvasId,
362
369
DateTime ? lastUpdated,
370
+ List <String >? disabledLayouts,
363
371
364
372
// Privacy
365
373
PrivacyBase ? privacy,
@@ -378,6 +386,7 @@ class SDKPublishModel extends PrivacyBase {
378
386
entryPageId: entryPageId ?? this .entryPageId,
379
387
entryCanvasId: entryCanvasId ?? this .entryCanvasId,
380
388
lastUpdated: lastUpdated ?? this .lastUpdated,
389
+ disabledLayouts: disabledLayouts ?? this .disabledLayouts,
381
390
382
391
// Privacy
383
392
privacy: privacy ?? this ,
@@ -400,6 +409,7 @@ class SDKPublishModel extends PrivacyBase {
400
409
entryPageId,
401
410
entryCanvasId,
402
411
lastUpdated,
412
+ disabledLayouts,
403
413
];
404
414
}
405
415
0 commit comments