ResponsePolicyRule.fromJson constructor

ResponsePolicyRule.fromJson(
  1. Map json_
)

Implementation

ResponsePolicyRule.fromJson(core.Map json_)
    : this(
        behavior: json_.containsKey('behavior')
            ? json_['behavior'] as core.String
            : null,
        dnsName: json_.containsKey('dnsName')
            ? json_['dnsName'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        localData: json_.containsKey('localData')
            ? ResponsePolicyRuleLocalData.fromJson(
                json_['localData'] as core.Map<core.String, core.dynamic>)
            : null,
        ruleName: json_.containsKey('ruleName')
            ? json_['ruleName'] as core.String
            : null,
      );