toEntity method
Implementation
@override
ProductDisplayEntity toEntity({String? appId}) {
return ProductDisplayEntity(
appId: appId,
description: (description != null) ? description : null,
itemDetailBackground: (itemDetailBackground != null)
? itemDetailBackground!.toEntity(appId: appId)
: null,
addToBasketText: (addToBasketText != null) ? addToBasketText : null,
buyAction: (buyAction != null) ? buyAction!.toEntity(appId: appId) : null,
shopId: (shop != null) ? shop!.documentID : null,
background:
(background != null) ? background!.toEntity(appId: appId) : null,
conditions:
(conditions != null) ? conditions!.toEntity(appId: appId) : null,
);
}