IaphubRestoreResponse.fromJson constructor

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

Constructor from JSON

Implementation

IaphubRestoreResponse.fromJson(Map<String, dynamic> json)
    : newPurchases = (json["newPurchases"] ?? [])
          .map<IaphubTransaction>((data) => IaphubTransaction.fromJson(data))
          .toList(),
      transferredActiveProducts = (json["transferredActiveProducts"] ?? [])
          .map<IaphubActiveProduct>(
              (data) => IaphubActiveProduct.fromJson(data))
          .toList();