AdjustPurchaseVerificationResult.fromMap constructor

AdjustPurchaseVerificationResult.fromMap(
  1. dynamic map
)

Implementation

factory AdjustPurchaseVerificationResult.fromMap(dynamic map) {
  try {
    int parsedCode = -1;
    try {
      if (map['code'] != null) {
        parsedCode = int.parse(map['code']);
      }
    } catch (ex) {}

    return AdjustPurchaseVerificationResult(parsedCode, map['message'], map['verificationStatus']);
  } catch (e) {
    throw Exception(
        '[AdjustFlutter]: Failed to create AdjustPurchaseVerificationResult object from given map object. Details: ' +
            e.toString());
  }
}