DnsResponse.fromJson constructor
Implementation
factory DnsResponse.fromJson(Map<String, dynamic> json) => DnsResponse(
status: json["Status"],
tc: json["TC"],
rd: json["RD"],
ra: json["RA"],
ad: json["AD"],
cd: json["CD"],
question: List<DnsQuestion>.from(
json["Question"].map((x) => DnsQuestion.fromJson(x))),
answer: List<DnsRecord>.from(
(json["Answer"] ?? []).map((x) => DnsRecord.fromJson(x))),
);