PolicyAlternativeNameServerConfig.fromJson constructor

PolicyAlternativeNameServerConfig.fromJson(
  1. Map json_
)

Implementation

PolicyAlternativeNameServerConfig.fromJson(core.Map json_)
    : this(
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        targetNameServers: json_.containsKey('targetNameServers')
            ? (json_['targetNameServers'] as core.List)
                .map((value) =>
                    PolicyAlternativeNameServerConfigTargetNameServer
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );