ThreatPreventionProfile.fromJson constructor

ThreatPreventionProfile.fromJson(
  1. Map json_
)

Implementation

ThreatPreventionProfile.fromJson(core.Map json_)
    : this(
        severityOverrides: json_.containsKey('severityOverrides')
            ? (json_['severityOverrides'] as core.List)
                .map((value) => SeverityOverride.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        threatOverrides: json_.containsKey('threatOverrides')
            ? (json_['threatOverrides'] as core.List)
                .map((value) => ThreatOverride.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );