toEntity method

AdminGrant toEntity()

Implementation

AdminGrant toEntity() => AdminGrant(
  id: id,
  targetUserId: targetUserId,
  targetOrgId: targetOrgId,
  grantType: GrantType.fromString(grantType),
  plan: plan != null ? PlanTier.fromString(plan) : null,
  discountPct: discountPct,
  aiBoostMessages: aiBoostMessages,
  trialExtensionDays: trialExtensionDays,
  startsAt: startsAt,
  endsAt: endsAt,
  reason: reason,
  grantedBy: grantedBy,
  createdAt: createdAt,
  revokedAt: revokedAt,
  revokedBy: revokedBy,
);