DnsRecord.fromJson constructor

DnsRecord.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DnsRecord.fromJson(Map<String, dynamic> json) => DnsRecord(
      name: json["name"],
      type: decodeType(json["type"]),
      maxTTL: json["TTL"],
      data: json["data"],
    );