VerifyPurchaseResultIOS.fromJson constructor

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

Implementation

factory VerifyPurchaseResultIOS.fromJson(Map<String, dynamic> json) {
  return VerifyPurchaseResultIOS(
    isValid: json['isValid'] as bool,
    jwsRepresentation: json['jwsRepresentation'] as String,
    latestTransaction: json['latestTransaction'] != null ? Purchase.fromJson(json['latestTransaction'] as Map<String, dynamic>) : null,
    receiptData: json['receiptData'] as String,
  );
}