ContentSecurityPolicyStatus.fromJson constructor

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

Implementation

factory ContentSecurityPolicyStatus.fromJson(Map<String, dynamic> json) {
  return ContentSecurityPolicyStatus(
    effectiveDirectives: json['effectiveDirectives'] as String,
    isEnforced: json['isEnforced'] as bool? ?? false,
    source: ContentSecurityPolicySource.fromJson(json['source'] as String),
  );
}