Usage class

Represents the usage data of a usage plan.

Create and Use Usage Plans, Manage Usage in a Usage Plan

Constructors

Usage({String? endDate, Map<String, List<List<int>>>? items, String? position, String? startDate, String? usagePlanId})
Usage.fromJson(Map<String, dynamic> json)
factory

Properties

endDate String?
The ending date of the usage data.
final
hashCode int
The hash code for this object.
no setterinherited
items Map<String, List<List<int>>>?
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ 0, 100, 10, 90, 100, 10]}, where {api_key} stands for an API key value and the daily log entry is of the format used quota, remaining quota.
final
position String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDate String?
The starting date of the usage data.
final
usagePlanId String?
The plan Id associated with this usage data.
final

Methods

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

Operators

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