AdTraceEventFailure.fromMap constructor
AdTraceEventFailure.fromMap(
- dynamic map
Implementation
factory AdTraceEventFailure.fromMap(dynamic map) {
try {
return AdTraceEventFailure(
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(
'[AdTraceFlutter]: Failed to create AdTraceEventFailure object from given map object. Details: ' +
e.toString());
}
}