toEntity method

Entitlement toEntity()

Implementation

Entitlement toEntity() {
  return Entitlement(
    plan: PlanTier.fromString(plan),
    source: EntitlementSource.fromString(source),
    expiresAt: expiresAt,
    trialExpiresAt: trialExpiresAt,
    trialStartedAt: trialStartedAt,
    entitlements: entitlements,
    grantsApplied: grantsApplied,
    aiDailyCap: ai.dailyCap,
    aiWeeklyCap: ai.weeklyCap,
    aiTotalCap: ai.totalCap,
    aiBoost: ai.boost,
  );
}