mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-06 20:16:56 +00:00
28 lines
737 B
Dart
28 lines
737 B
Dart
|
part of 'cloudflare_dns_info.dart';
|
||
|
|
||
|
CloudflareDnsRecord _fromDnsRecord(
|
||
|
final DnsRecord dnsRecord,
|
||
|
final String rootDomain,
|
||
|
) =>
|
||
|
CloudflareDnsRecord(
|
||
|
content: dnsRecord.content,
|
||
|
name: dnsRecord.name,
|
||
|
type: dnsRecord.type,
|
||
|
zoneName: rootDomain,
|
||
|
id: null,
|
||
|
ttl: dnsRecord.ttl,
|
||
|
);
|
||
|
|
||
|
DnsRecord _toDnsRecord(final CloudflareDnsRecord cloudflareRecord) => DnsRecord(
|
||
|
content: cloudflareRecord.content,
|
||
|
name: cloudflareRecord.name,
|
||
|
type: cloudflareRecord.type,
|
||
|
ttl: cloudflareRecord.ttl,
|
||
|
);
|
||
|
|
||
|
ServerDomain _toServerDomain(final CloudflareZone cloudflareZone) =>
|
||
|
ServerDomain(
|
||
|
domainName: cloudflareZone.name,
|
||
|
provider: DnsProviderType.cloudflare,
|
||
|
);
|