// Metro module 5840 (f5841). import { ShopBlockType } from "../../../_bundle/Module5829"; class ShelfBlockRecord { type = ShopBlockType.SHELF; constructor(a0) { this.name = a0.name; this.rankedSkuIds = a0.ranked_sku_ids; let category_sku_id = a0.category_sku_id; if (category_sku_id == null) { category_sku_id = null; } this.categorySkuId = category_sku_id; this.showButton = a0.show_button !== false; let button_text = a0.button_text; if (button_text == null) { button_text = null; } this.buttonText = button_text; let title_color = a0.title_color; if (title_color == null) { title_color = null; } this.titleColor = title_color; let desktop_background_image = a0.desktop_background_image; if (desktop_background_image == null) { desktop_background_image = null; } this.desktopBackgroundImage = desktop_background_image; let mobile_background_image = a0.mobile_background_image; if (mobile_background_image == null) { mobile_background_image = null; } this.mobileBackgroundImage = mobile_background_image; } static fromServer(a0) { const r10 = { __proto__: ShelfBlockRecord.prototype }; r10.type = ShopBlockType.SHELF; r10.name = a0.name; r10.rankedSkuIds = a0.ranked_sku_ids; let category_sku_id = a0.category_sku_id; if (category_sku_id == null) { category_sku_id = null; } r10.categorySkuId = category_sku_id; r10.showButton = a0.show_button !== false; let button_text = a0.button_text; if (button_text == null) { button_text = null; } r10.buttonText = button_text; let title_color = a0.title_color; if (title_color == null) { title_color = null; } r10.titleColor = title_color; let desktop_background_image = a0.desktop_background_image; if (desktop_background_image == null) { desktop_background_image = null; } r10.desktopBackgroundImage = desktop_background_image; let mobile_background_image = a0.mobile_background_image; if (mobile_background_image == null) { mobile_background_image = null; } r10.mobileBackgroundImage = mobile_background_image; return r10; } } export { ShelfBlockRecord };