PrerenderMismatchedHeaders.fromJson constructor

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

Implementation

factory PrerenderMismatchedHeaders.fromJson(Map<String, dynamic> json) {
  return PrerenderMismatchedHeaders(
    headerName: json['headerName'] as String,
    initialValue: json.containsKey('initialValue')
        ? json['initialValue'] as String
        : null,
    activationValue: json.containsKey('activationValue')
        ? json['activationValue'] as String
        : null,
  );
}