AdTraceEventSuccess.fromMap constructor

AdTraceEventSuccess.fromMap(
  1. dynamic map
)

Implementation

factory AdTraceEventSuccess.fromMap(dynamic map) {
  try {
    return AdTraceEventSuccess(
      message: map['message'],
      timestamp: map['timestamp'],
      adid: map['adid'],
      eventToken: map['eventToken'],
      callbackId: map['callbackId'],
      jsonResponse: map['jsonResponse'],
    );
  } catch (e) {
    throw Exception(
        '[AdTraceFlutter]: Failed to create AdTraceEventSuccess object from given map object. Details: ' +
            e.toString());
  }
}