GetModelDownloadHistory200Response class

Constructors

GetModelDownloadHistory200Response({List<DownloadPoint> data = const [], required int cost, required int creditsRemaining, required int rateLimitLimit, required int rateLimitRemaining, required int rateLimitReset, required GetModelDownloadHistory200ResponseMeteringEnum metering, required String requestId})
Returns a new GetModelDownloadHistory200Response instance.

Properties

cost ↔ int
Credits this call costs.
getter/setter pair
creditsRemaining ↔ int
Wallet balance after the call. Unchanged while metering is preview.
getter/setter pair
data ↔ List<DownloadPoint>
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
metering ↔ GetModelDownloadHistory200ResponseMeteringEnum
Whether cost was actually deducted.
getter/setter pair
rateLimitLimit ↔ int
Ceiling for the current window. Also returned as X-RateLimit-Limit.
getter/setter pair
rateLimitRemaining ↔ int
Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
getter/setter pair
rateLimitReset ↔ int
Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
getter/setter pair
requestId ↔ String
Also returned in the x-request-id header.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → GetModelDownloadHistory200Response?
Returns a new GetModelDownloadHistory200Response instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GetModelDownloadHistory200Response>
mapFromJson(dynamic json) → Map<String, GetModelDownloadHistory200Response>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GetModelDownloadHistory200Response>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.