toEntity method

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

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,
  );
}