AdjustEventFailure.fromMap constructor
AdjustEventFailure.fromMap(
- dynamic map
Implementation
factory AdjustEventFailure.fromMap(dynamic map) {
try {
return AdjustEventFailure(
message: map['message'],
timestamp: map['timestamp'],
adid: map['adid'],
eventToken: map['eventToken'],
callbackId: map['callbackId'],
jsonResponse: map['jsonResponse'],
willRetry: map['willRetry']?.toString().toLowerCase() == 'true',
);
} catch (e) {
throw Exception(
'[AdjustFlutter]: Failed to create AdjustEventFailure object from given map object. Details: ' +
e.toString());
}
}