toEntity method

Subscription toEntity()

Implementation

Subscription toEntity() => Subscription(
  id: id,
  targetUserId: targetUserId,
  targetOrgId: targetOrgId,
  source: SubscriptionSource.fromString(source),
  externalId: externalId,
  plan: PlanTier.fromString(plan),
  status: SubscriptionStatus.fromString(status),
  currentPeriodStart: currentPeriodStart,
  currentPeriodEnd: currentPeriodEnd,
  cancelAtPeriodEnd: cancelAtPeriodEnd,
  seats: seats,
  metadata: metadata,
  createdAt: createdAt,
  updatedAt: updatedAt,
);