InsecureContentStatus.fromJson constructor

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

Implementation

factory InsecureContentStatus.fromJson(Map<String, dynamic> json) {
  return InsecureContentStatus(
    ranMixedContent: json['ranMixedContent'] as bool? ?? false,
    displayedMixedContent: json['displayedMixedContent'] as bool? ?? false,
    containedMixedForm: json['containedMixedForm'] as bool? ?? false,
    ranContentWithCertErrors:
        json['ranContentWithCertErrors'] as bool? ?? false,
    displayedContentWithCertErrors:
        json['displayedContentWithCertErrors'] as bool? ?? false,
    ranInsecureContentStyle:
        SecurityState.fromJson(json['ranInsecureContentStyle'] as String),
    displayedInsecureContentStyle: SecurityState.fromJson(
        json['displayedInsecureContentStyle'] as String),
  );
}