VulnerableHeaders.fromJson constructor

VulnerableHeaders.fromJson(
  1. Map json_
)

Implementation

VulnerableHeaders.fromJson(core.Map json_)
    : this(
        headers: json_.containsKey('headers')
            ? (json_['headers'] as core.List)
                .map((value) => Header.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        missingHeaders: json_.containsKey('missingHeaders')
            ? (json_['missingHeaders'] as core.List)
                .map((value) => Header.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );