CustomDns.fromJson constructor

CustomDns.fromJson(
  1. Map json_
)

Implementation

CustomDns.fromJson(core.Map json_)
    : this(
        dsRecords: json_.containsKey('dsRecords')
            ? (json_['dsRecords'] as core.List)
                .map((value) => DsRecord.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nameServers: json_.containsKey('nameServers')
            ? (json_['nameServers'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );