toEntity method

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

Implementation

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