AuthRequiredEvent.fromJson constructor

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

Implementation

factory AuthRequiredEvent.fromJson(Map<String, dynamic> json) {
  return AuthRequiredEvent(
    requestId: RequestId.fromJson(json['requestId'] as String),
    request: network.RequestData.fromJson(
      json['request'] as Map<String, dynamic>,
    ),
    frameId: page.FrameId.fromJson(json['frameId'] as String),
    resourceType: network.ResourceType.fromJson(
      json['resourceType'] as String,
    ),
    authChallenge: AuthChallenge.fromJson(
      json['authChallenge'] as Map<String, dynamic>,
    ),
  );
}