AdTraceSessionSuccess.fromMap constructor

AdTraceSessionSuccess.fromMap(
  1. dynamic map
)

Implementation

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