toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
  if (byokUsage != null) 'byok_usage': byokUsage,
  if (byokUsageDaily != null) 'byok_usage_daily': byokUsageDaily,
  if (byokUsageWeekly != null) 'byok_usage_weekly': byokUsageWeekly,
  if (byokUsageMonthly != null) 'byok_usage_monthly': byokUsageMonthly,
  if (creatorUserId != null) 'creator_user_id': creatorUserId,
  if (includeByokInLimit != null) 'include_byok_in_limit': includeByokInLimit,
  if (isFreeTier != null) 'is_free_tier': isFreeTier,
  if (isManagementKey != null) 'is_management_key': isManagementKey,
  if (isProvisioningKey != null) 'is_provisioning_key': isProvisioningKey,
  if (label != null) 'label': label,
  if (limit != null) 'limit': limit,
  if (limitRemaining != null) 'limit_remaining': limitRemaining,
  if (limitReset != null) 'limit_reset': limitReset!.wireValue,
  if (usage != null) 'usage': usage,
  if (usageDaily != null) 'usage_daily': usageDaily,
  if (usageWeekly != null) 'usage_weekly': usageWeekly,
  if (usageMonthly != null) 'usage_monthly': usageMonthly,
  if (rateLimit != null) 'rate_limit': rateLimit!.toMap(),
  if (expiresAt != null) 'expires_at': _toUtcIso8601(expiresAt!),
};