OpenRouterManagedApiKey class

Constructors

OpenRouterManagedApiKey({required String hash, String? name, String? label, String? creatorUserId, DateTime? createdAt, DateTime? updatedAt, DateTime? expiresAt, double? limit, double? limitRemaining, OpenRouterApiKeyLimitReset? limitReset, bool? includeByokInLimit, double? usage, double? usageDaily, double? usageWeekly, double? usageMonthly, double? byokUsage, double? byokUsageDaily, double? byokUsageWeekly, double? byokUsageMonthly, bool disabled = false})
const
OpenRouterManagedApiKey.fromJson(String json)
factory
OpenRouterManagedApiKey.fromMap(Map<String, dynamic> map)
factory

Properties

byokUsage → double?
final
byokUsageDaily → double?
final
byokUsageMonthly → double?
final
byokUsageWeekly → double?
final
createdAt → DateTime?
final
creatorUserId → String?
final
disabled → bool
final
expiresAt → DateTime?
final
hash → String
final
hashCode → int
The hash code for this object.
no setterinherited
includeByokInLimit → bool?
final
label → String?
final
limit → double?
final
limitRemaining → double?
final
limitReset → OpenRouterApiKeyLimitReset?
final
name → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt → DateTime?
final
usage → double?
final
usageDaily → double?
final
usageMonthly → double?
final
usageWeekly → double?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited