EsimCurrentUsage class

Constructors

EsimCurrentUsage({required String iccid, required EsimCurrentUsageStatusEnum status, DateTime? start, DateTime? end, int? allowedData, int? remainingData, int? allowedSms, int? remainingSms, int? allowedVoice, int? remainingVoice})
Returns a new EsimCurrentUsage 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 ↔ EsimCurrentUsageStatusEnum
The installed profile's status.
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) → EsimCurrentUsage?
Returns a new EsimCurrentUsage instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<EsimCurrentUsage>
mapFromJson(dynamic json) → Map<String, EsimCurrentUsage>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<EsimCurrentUsage>>

Constants

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