EsimDailyUsage class

Constructors

EsimDailyUsage({required String iccid, required EsimDailyUsageStatusEnum status, DateTime? start, DateTime? end, int? allowedData, int? remainingData, int? allowedSms, int? remainingSms, int? allowedVoice, int? remainingVoice, List<EsimDailyUsageEntry> usages = const []})
Returns a new EsimDailyUsage instance.

Properties

allowedData ↔ int?
Total data in MB (1 MB = 1024 KB), plan and top-ups together; 9007199254740991 means unlimited, 0 not reported.
getter/setter pair
allowedSms ↔ int?
Total SMS; 0 when not reported or not included.
getter/setter pair
allowedVoice ↔ int?
Total voice in seconds; 0 when not reported or not included.
getter/setter pair
end ↔ DateTime?
When the plan ends, in UTC; null while no end is set.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
iccid ↔ String
The eSIM's ICCID.
getter/setter pair
remainingData ↔ int?
Remaining data in MB; 9007199254740991 means unlimited, 0 unknown.
getter/setter pair
remainingSms ↔ int?
Remaining SMS; 0 when not reported.
getter/setter pair
remainingVoice ↔ int?
Remaining voice in seconds; 0 when not reported.
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 ↔ EsimDailyUsageStatusEnum
The installed profile's status.
getter/setter pair
usages ↔ List<EsimDailyUsageEntry>
Per-day usage, empty when the plan does not report a per-day breakdown.
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) → EsimDailyUsage?
Returns a new EsimDailyUsage instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<EsimDailyUsage>
mapFromJson(dynamic json) → Map<String, EsimDailyUsage>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<EsimDailyUsage>>

Constants

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