toEntity method
Implementation
@override
PayEntity toEntity({String? appId}) {
return PayEntity(
appId: appId,
description: (description != null) ? description : null,
succeeded: (succeeded != null) ? succeeded!.toEntity(appId: appId) : null,
payAction: (payAction != null) ? payAction!.toEntity(appId: appId) : null,
shopId: (shop != null) ? shop!.documentID : null,
conditions:
(conditions != null) ? conditions!.toEntity(appId: appId) : null,
);
}