SimPhoneInfo.fromMap constructor
SimPhoneInfo.fromMap(
- Map map
Creates an instance of SimPhoneInfo from a map. This is typically used for deserializing data from the platform channel.
Implementation
factory SimPhoneInfo.fromMap(Map<dynamic, dynamic> map) {
return SimPhoneInfo(
phoneNumber: map['phoneNumber'],
carrierName: map['carrierName'] ?? '',
countryIso: map['countryIso'] ?? '',
slotIndex: map['slotIndex'] ?? -1,
isDataAvailable: map['isDataAvailable'] ?? false,
message: map['message'] ?? '',
);
}