EsimProfile class

Constructors

EsimProfile({required String orderId, required String orderItemId, String? iccid, required String packageName, String? countryImage, required EsimProfileStatusEnum status, int? day, bool? isUnlimited, bool? isApnAutomatic, bool? withSMS, bool? withCall, EsimFeatures? properties, SimCard? esim, List<EsimAddon> addon = const [], EsimProfileData? data, EsimSmsAllowance? sms, EsimVoiceAllowance? voice, EsimApn? apn, DateTime? expiredAt})
Returns a new EsimProfile instance.

Properties

addon ↔ List<EsimAddon>
The top-ups applied to the eSIM.
getter/setter pair
apn ↔ EsimApn?
APN settings for manual device setup.
getter/setter pair
countryImage ↔ String?
Image URL of the destination, or null.
getter/setter pair
data ↔ EsimProfileData?
The plan's data allowance.
getter/setter pair
day ↔ int?
How many days the plan is valid.
getter/setter pair
esim ↔ SimCard?
SIM details: LPA code, QR code URL, quick-install links and usage; null until the eSIM is provisioned.
getter/setter pair
expiredAt ↔ DateTime?
When the eSIM's validity ends, in UTC; null until it is activated.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
iccid ↔ String?
The eSIM's ICCID; null until the eSIM is provisioned.
getter/setter pair
isApnAutomatic ↔ bool?
Whether the device sets the APN automatically; otherwise use apn.
getter/setter pair
isUnlimited ↔ bool?
Whether the plan has unlimited data.
getter/setter pair
orderId ↔ String
The order that bought the eSIM.
getter/setter pair
orderItemId ↔ String
The order item that bought the eSIM, which POST /esims/{id}/provisioning takes.
getter/setter pair
packageName ↔ String
Display name of the purchased plan.
getter/setter pair
properties ↔ EsimFeatures?
Plan features, such as hotspot and top-up support.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sms ↔ EsimSmsAllowance?
The plan's SMS allowance, when it includes SMS.
getter/setter pair
status ↔ EsimProfileStatusEnum
The eSIM's lifecycle status.
getter/setter pair
voice ↔ EsimVoiceAllowance?
The plan's calling allowance, when it includes calls.
getter/setter pair
withCall ↔ bool?
Whether the plan includes calls.
getter/setter pair
withSMS ↔ bool?
Whether the plan includes SMS.
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) → EsimProfile?
Returns a new EsimProfile instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<EsimProfile>
mapFromJson(dynamic json) → Map<String, EsimProfile>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<EsimProfile>>

Constants

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