RequestVerifyPurchaseWithIapkitResult.fromJson constructor

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

Implementation

factory RequestVerifyPurchaseWithIapkitResult.fromJson(Map<String, dynamic> json) {
  return RequestVerifyPurchaseWithIapkitResult(
    clientPayload: json['clientPayload'] != null ? IapkitProductClientPayload.fromJson(json['clientPayload'] as Map<String, dynamic>) : null,
    isValid: json['isValid'] as bool,
    productId: json['productId'] as String?,
    state: IapkitPurchaseState.fromJson(json['state'] as String),
    store: IapStore.fromJson(json['store'] as String),
  );
}