PolicyAlternativeNameServerConfig.fromJson constructor

PolicyAlternativeNameServerConfig.fromJson(
  1. Map _json
)

Implementation

PolicyAlternativeNameServerConfig.fromJson(core.Map _json) {
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("targetNameServers")) {
    targetNameServers = (_json["targetNameServers"] as core.List)
        .map<PolicyAlternativeNameServerConfigTargetNameServer>((value) =>
            new PolicyAlternativeNameServerConfigTargetNameServer.fromJson(
                value))
        .toList();
  }
}