SimCard.fromMap constructor

SimCard.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory SimCard.fromMap(Map<String, dynamic> json) => SimCard(
      carrierName: json["carrierName"] ?? '',
      displayName: json["displayName"] ?? '',
      slotIndex: json["slotIndex"] ?? -1,
      number: json["number"] ?? '',
      countryIso: json["countryIso"] ?? '',
      countryPhonePrefix: json["countryPhonePrefix"] ?? '',
    );