CrossOriginEmbedderPolicyStatus.fromJson constructor
CrossOriginEmbedderPolicyStatus.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CrossOriginEmbedderPolicyStatus.fromJson(Map<String, dynamic> json) {
return CrossOriginEmbedderPolicyStatus(
value: CrossOriginEmbedderPolicyValue.fromJson(json['value'] as String),
reportOnlyValue: CrossOriginEmbedderPolicyValue.fromJson(
json['reportOnlyValue'] as String),
reportingEndpoint: json.containsKey('reportingEndpoint')
? json['reportingEndpoint'] as String
: null,
reportOnlyReportingEndpoint:
json.containsKey('reportOnlyReportingEndpoint')
? json['reportOnlyReportingEndpoint'] as String
: null,
);
}