mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-12 06:47:18 +00:00
26 lines
546 B
Dart
26 lines
546 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'dns_records.g.dart';
|
|
|
|
@JsonSerializable(createToJson: true, createFactory: false)
|
|
class DnsRecords {
|
|
DnsRecords({
|
|
@required this.type,
|
|
@required this.name,
|
|
@required this.content,
|
|
this.ttl = 3600,
|
|
this.priority = 10,
|
|
this.proxied = false,
|
|
});
|
|
|
|
final String type;
|
|
final String name;
|
|
final String content;
|
|
final int ttl;
|
|
final int priority;
|
|
final bool proxied;
|
|
|
|
toJson() => _$DnsRecordsToJson(this);
|
|
}
|