AdTracePurchaseVerificationInfo.fromMap constructor

AdTracePurchaseVerificationInfo.fromMap(
  1. dynamic map
)

Implementation

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

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