GenericIssueDetails.fromJson constructor
GenericIssueDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GenericIssueDetails.fromJson(Map<String, dynamic> json) {
return GenericIssueDetails(
errorType: GenericIssueErrorType.fromJson(json['errorType'] as String),
frameId: json.containsKey('frameId')
? page.FrameId.fromJson(json['frameId'] as String)
: null,
violatingNodeId: json.containsKey('violatingNodeId')
? dom.BackendNodeId.fromJson(json['violatingNodeId'] as int)
: null,
violatingNodeAttribute: json.containsKey('violatingNodeAttribute')
? json['violatingNodeAttribute'] as String
: null,
request: json.containsKey('request')
? AffectedRequest.fromJson(json['request'] as Map<String, dynamic>)
: null,
);
}