AttributionReportingVerboseDebugReportSentEvent.fromJson constructor

AttributionReportingVerboseDebugReportSentEvent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AttributionReportingVerboseDebugReportSentEvent.fromJson(
  Map<String, dynamic> json,
) {
  return AttributionReportingVerboseDebugReportSentEvent(
    url: json['url'] as String,
    body: json.containsKey('body')
        ? (json['body'] as List)
              .map((e) => e as Map<String, dynamic>)
              .toList()
        : null,
    netError: json.containsKey('netError') ? json['netError'] as int : null,
    netErrorName: json.containsKey('netErrorName')
        ? json['netErrorName'] as String
        : null,
    httpStatusCode: json.containsKey('httpStatusCode')
        ? json['httpStatusCode'] as int
        : null,
  );
}