GoogleDomainsDns.fromJson constructor

GoogleDomainsDns.fromJson(
  1. Map _json
)

Implementation

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