AttributionReportingIssueDetails.fromJson constructor

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

Implementation

factory AttributionReportingIssueDetails.fromJson(Map<String, dynamic> json) {
  return AttributionReportingIssueDetails(
    violationType: AttributionReportingIssueType.fromJson(
        json['violationType'] as String),
    request: json.containsKey('request')
        ? AffectedRequest.fromJson(json['request'] as Map<String, dynamic>)
        : null,
    violatingNodeId: json.containsKey('violatingNodeId')
        ? dom.BackendNodeId.fromJson(json['violatingNodeId'] as int)
        : null,
    invalidParameter: json.containsKey('invalidParameter')
        ? json['invalidParameter'] as String
        : null,
  );
}