toEntity method

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

Implementation

@override
OrderOverviewEntity toEntity({String? appId}) {
  return OrderOverviewEntity(
    appId: appId,
    description: (description != null) ? description : null,
    shopId: (shop != null) ? shop!.documentID : null,
    itemImageBackground: (itemImageBackground != null)
        ? itemImageBackground!.toEntity(appId: appId)
        : null,
    itemDetailBackground: (itemDetailBackground != null)
        ? itemDetailBackground!.toEntity(appId: appId)
        : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}