DnsRecord.fromJson constructor

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

Implementation

factory DnsRecord.fromJson(Map<String, dynamic> json) {
  return DnsRecord(
    ttl: json['TTL'] as int,
    type: (json['Type'] as String).toRecordType(),
  );
}