Skip to content

Commit f20049b

Browse files
committed
feat: expect no message in pv response in failure cases
1 parent 524f228 commit f20049b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/adjust_purchase_verification_result.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ class AdjustPurchaseVerificationResult {
2222
}
2323
} catch (ex) {}
2424

25-
return AdjustPurchaseVerificationResult(parsedCode, map['message'], map['verificationStatus']);
25+
return AdjustPurchaseVerificationResult(
26+
parsedCode,
27+
map['message'] ?? '',
28+
map['verificationStatus'] ?? '');
2629
} catch (e) {
2730
throw Exception(
2831
'[AdjustFlutter]: Failed to create AdjustPurchaseVerificationResult object from given map object. Details: ' +

0 commit comments

Comments
 (0)