MixedContentIssueDetails.fromJson constructor

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

Implementation

factory MixedContentIssueDetails.fromJson(Map<String, dynamic> json) {
  return MixedContentIssueDetails(
    resourceType: json.containsKey('resourceType')
        ? MixedContentResourceType.fromJson(json['resourceType'] as String)
        : null,
    resolutionStatus: MixedContentResolutionStatus.fromJson(
        json['resolutionStatus'] as String),
    insecureURL: json['insecureURL'] as String,
    mainResourceURL: json['mainResourceURL'] as String,
    request: json.containsKey('request')
        ? AffectedRequest.fromJson(json['request'] as Map<String, dynamic>)
        : null,
    frame: json.containsKey('frame')
        ? AffectedFrame.fromJson(json['frame'] as Map<String, dynamic>)
        : null,
  );
}