copyWith method

SubscriptionEntity copyWith({
  1. String? id,
  2. String? epaycoId,
  3. String? epaycoUserId,
  4. String? epaycoTokenCard,
  5. String? planIdFk,
  6. String? pseId,
  7. String? suscriptionIdFk,
  8. String? organizationUidFk,
  9. String? userOwnerUidFk,
  10. DateTime? startDate,
  11. DateTime? endDate,
})

Implementation

SubscriptionEntity copyWith({
  String? id,
  String? epaycoId,
  String? epaycoUserId,
  String? epaycoTokenCard,
  String? planIdFk,
  String? pseId,
  String? suscriptionIdFk,
  String? organizationUidFk,
  String? userOwnerUidFk,
  DateTime? startDate,
  DateTime? endDate,
}) =>
    SubscriptionEntity(
      id: id ?? this.id,
      epaycoId: epaycoId ?? this.epaycoId,
      epaycoUserId: epaycoUserId ?? this.epaycoUserId,
      epaycoTokenCard: epaycoTokenCard ?? this.epaycoTokenCard,
      planIdFk: planIdFk ?? this.planIdFk,
      pseId: pseId ?? this.pseId,
      suscriptionIdFk: suscriptionIdFk ?? this.suscriptionIdFk,
      organizationUidFk: organizationUidFk ?? this.organizationUidFk,
      userOwnerUidFk: userOwnerUidFk ?? this.userOwnerUidFk,
      startDate: startDate ?? this.startDate,
      endDate: endDate ?? this.endDate,
    );