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<DsRecord>((value) => DsRecord.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nameServers: _json.containsKey('nameServers')
            ? (_json['nameServers'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );