GenericIssueDetails.fromJson constructor

GenericIssueDetails.fromJson(
  1. 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,
  );
}