RRSetRoutingPolicyWrrPolicyWrrPolicyItem.fromJson constructor

RRSetRoutingPolicyWrrPolicyWrrPolicyItem.fromJson(
  1. Map json_
)

Implementation

RRSetRoutingPolicyWrrPolicyWrrPolicyItem.fromJson(core.Map json_)
    : this(
        healthCheckedTargets: json_.containsKey('healthCheckedTargets')
            ? RRSetRoutingPolicyHealthCheckTargets.fromJson(
                json_['healthCheckedTargets']
                    as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        rrdatas: json_.containsKey('rrdatas')
            ? (json_['rrdatas'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        signatureRrdatas: json_.containsKey('signatureRrdatas')
            ? (json_['signatureRrdatas'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        weight: json_.containsKey('weight')
            ? (json_['weight'] as core.num).toDouble()
            : null,
      );