StylesheetLoadingIssueDetails.fromJson constructor

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

Implementation

factory StylesheetLoadingIssueDetails.fromJson(Map<String, dynamic> json) {
  return StylesheetLoadingIssueDetails(
    sourceCodeLocation: SourceCodeLocation.fromJson(
        json['sourceCodeLocation'] as Map<String, dynamic>),
    styleSheetLoadingIssueReason: StyleSheetLoadingIssueReason.fromJson(
        json['styleSheetLoadingIssueReason'] as String),
    failedRequestInfo: json.containsKey('failedRequestInfo')
        ? FailedRequestInfo.fromJson(
            json['failedRequestInfo'] as Map<String, dynamic>)
        : null,
  );
}