SubresourceWebBundleInnerResponseErrorEvent.fromJson constructor

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

Implementation

factory SubresourceWebBundleInnerResponseErrorEvent.fromJson(
    Map<String, dynamic> json) {
  return SubresourceWebBundleInnerResponseErrorEvent(
    innerRequestId: RequestId.fromJson(json['innerRequestId'] as String),
    innerRequestURL: json['innerRequestURL'] as String,
    errorMessage: json['errorMessage'] as String,
    bundleRequestId: json.containsKey('bundleRequestId')
        ? RequestId.fromJson(json['bundleRequestId'] as String)
        : null,
  );
}