ListAuthors200Response class
Constructors
-
ListAuthors200Response({List<
Author> data = const [], required int cost, required int creditsRemaining, required int rateLimitLimit, required int rateLimitRemaining, required int rateLimitReset, required ListAuthors200ResponseMeteringEnum metering, required String requestId}) - Returns a new ListAuthors200Response 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<
Author> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- metering ↔ ListAuthors200ResponseMeteringEnum
-
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) → ListAuthors200Response? -
Returns a new ListAuthors200Response instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< ListAuthors200Response> -
mapFromJson(
dynamic json) → Map< String, ListAuthors200Response> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< ListAuthors200Response> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.