AdTraceSessionFailure.fromMap constructor

AdTraceSessionFailure.fromMap(
  1. dynamic map
)

Implementation

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