DnsSettings.fromJson constructor

DnsSettings.fromJson(
  1. Map json_
)

Implementation

DnsSettings.fromJson(core.Map json_)
    : this(
        customDns: json_.containsKey('customDns')
            ? CustomDns.fromJson(
                json_['customDns'] as core.Map<core.String, core.dynamic>)
            : null,
        glueRecords: json_.containsKey('glueRecords')
            ? (json_['glueRecords'] as core.List)
                .map((value) => GlueRecord.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        googleDomainsDns: json_.containsKey('googleDomainsDns')
            ? GoogleDomainsDns.fromJson(json_['googleDomainsDns']
                as core.Map<core.String, core.dynamic>)
            : null,
      );