2021-01-06 17:35:57 +00:00
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'dns_records.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable(createToJson: true, createFactory: false)
|
2022-02-16 07:09:53 +00:00
|
|
|
class DnsRecord {
|
|
|
|
DnsRecord({
|
2021-03-15 15:39:44 +00:00
|
|
|
required this.type,
|
|
|
|
required this.name,
|
|
|
|
required this.content,
|
2021-01-06 17:35:57 +00:00
|
|
|
this.ttl = 3600,
|
|
|
|
this.priority = 10,
|
|
|
|
this.proxied = false,
|
|
|
|
});
|
|
|
|
|
|
|
|
final String type;
|
2021-03-15 15:39:44 +00:00
|
|
|
final String? name;
|
|
|
|
final String? content;
|
2021-01-06 17:35:57 +00:00
|
|
|
final int ttl;
|
|
|
|
final int priority;
|
|
|
|
final bool proxied;
|
|
|
|
|
2022-03-03 17:38:30 +00:00
|
|
|
toJson() => _$DnsRecordToJson(this);
|
2021-01-06 17:35:57 +00:00
|
|
|
}
|