EsimUsageReading class

Constructors

EsimUsageReading({required String iccid, required EsimUsageReadingStatusEnum status, required DateTime capturedAt, DateTime? start, DateTime? end, required bool isUnlimited, required EsimUsageReadingUsageBandEnum usageBand, required EsimUsageReadingExpiryBandEnum expiryBand, required int allowedData, required int remainingData, required int allowedSms, required int remainingSms, required int allowedVoice, required int remainingVoice})
Returns a new EsimUsageReading instance.

Properties

allowedData ↔ int
Total data in MB; 9007199254740991 means unlimited.
getter/setter pair
allowedSms ↔ int
Total SMS.
getter/setter pair
allowedVoice ↔ int
Total voice in seconds.
getter/setter pair
capturedAt ↔ DateTime
When the usage was read, in UTC.
getter/setter pair
end ↔ DateTime?
When the plan ends, in UTC; null while no end is set.
getter/setter pair
expiryBand ↔ EsimUsageReadingExpiryBandEnum
How close the plan was to its end at the reading: none, or within 14, 7, 3 or 1 days.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
iccid ↔ String
The eSIM's ICCID.
getter/setter pair
isUnlimited ↔ bool
Whether the plan has unlimited data.
getter/setter pair
remainingData ↔ int
Remaining data in MB; 9007199254740991 means unlimited.
getter/setter pair
remainingSms ↔ int
Remaining SMS.
getter/setter pair
remainingVoice ↔ int
Remaining voice in seconds.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start ↔ DateTime?
When the plan started, in UTC; null until it is activated.
getter/setter pair
status ↔ EsimUsageReadingStatusEnum
The eSIM's lifecycle status at the reading.
getter/setter pair
usageBand ↔ EsimUsageReadingUsageBandEnum
The share of data used at the reading: none, 25, 50, 75 or 90 percent, or depleted.
getter/setter pair

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

Constants

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