SecurityIsolationStatus.fromJson constructor

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

Implementation

factory SecurityIsolationStatus.fromJson(Map<String, dynamic> json) {
  return SecurityIsolationStatus(
    coop: json.containsKey('coop')
        ? CrossOriginOpenerPolicyStatus.fromJson(
            json['coop'] as Map<String, dynamic>)
        : null,
    coep: json.containsKey('coep')
        ? CrossOriginEmbedderPolicyStatus.fromJson(
            json['coep'] as Map<String, dynamic>)
        : null,
    csp: json.containsKey('csp')
        ? (json['csp'] as List)
            .map((e) => ContentSecurityPolicyStatus.fromJson(
                e as Map<String, dynamic>))
            .toList()
        : null,
  );
}