toEntity method

  1. @override
CartEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
CartEntity toEntity({String? appId}) {
  return CartEntity(
    appId: appId,
    title: (title != null) ? title : null,
    description: (description != null) ? description : null,
    checkoutText: (checkoutText != null) ? checkoutText : null,
    shopId: (shop != null) ? shop!.documentID : null,
    itemImageBackground: (itemImageBackground != null)
        ? itemImageBackground!.toEntity(appId: appId)
        : null,
    itemDetailBackground: (itemDetailBackground != null)
        ? itemDetailBackground!.toEntity(appId: appId)
        : null,
    checkoutAction: (checkoutAction != null)
        ? checkoutAction!.toEntity(appId: appId)
        : null,
    backToShopAction: (backToShopAction != null)
        ? backToShopAction!.toEntity(appId: appId)
        : null,
    openProductAction: (openProductAction != null)
        ? openProductAction!.toEntity(appId: appId)
        : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}