SimInfo.fromJson constructor

SimInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

SimInfo.fromJson(Map<String, dynamic> json) {
  if (json['iccIds'] != null) {
    iccIds = <IccIds>[];
    json['iccIds'].forEach((v) {
      iccIds!.add(new IccIds.fromJson(v));
    });
  }
  if (json['subscriptionIds'] != null) {
    subscriptionIds = <SubscriptionIds>[];
    json['subscriptionIds'].forEach((v) {
      subscriptionIds!.add(new SubscriptionIds.fromJson(v));
    });
  }
}