CloudArmor.fromJson constructor

CloudArmor.fromJson(
  1. Map json_
)

Implementation

CloudArmor.fromJson(core.Map json_)
    : this(
        adaptiveProtection: json_.containsKey('adaptiveProtection')
            ? AdaptiveProtection.fromJson(json_['adaptiveProtection']
                as core.Map<core.String, core.dynamic>)
            : null,
        attack: json_.containsKey('attack')
            ? Attack.fromJson(
                json_['attack'] as core.Map<core.String, core.dynamic>)
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        requests: json_.containsKey('requests')
            ? Requests.fromJson(
                json_['requests'] as core.Map<core.String, core.dynamic>)
            : null,
        securityPolicy: json_.containsKey('securityPolicy')
            ? SecurityPolicy.fromJson(json_['securityPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        threatVector: json_.containsKey('threatVector')
            ? json_['threatVector'] as core.String
            : null,
      );