AdjustPurchaseVerificationInfo.fromMap constructor

AdjustPurchaseVerificationInfo.fromMap(
  1. dynamic map
)

Implementation

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

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