CrossOriginOpenerPolicyStatus.fromJson constructor

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

Implementation

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