selfprivacy.org.app/lib/logic/models/dns_records.dart

25 lines
503 B
Dart
Raw Normal View History

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)
class DnsRecords {
DnsRecords({
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;
toJson() => _$DnsRecordsToJson(this);
}