refactor: Remove unused id field from DnsRecords object

pull/246/head
NaiJi ✨ 2023-07-26 20:27:10 -03:00
parent ed1421e9c5
commit b313cd340e
2 changed files with 0 additions and 5 deletions

View File

@ -9,7 +9,6 @@ class DnsRecord {
required this.type,
required this.name,
required this.content,
this.id,
this.ttl = 3600,
this.priority = 10,
this.proxied = false,
@ -32,8 +31,5 @@ class DnsRecord {
final int priority;
final bool proxied;
/// TODO: Refactoring refactoring refactoring refactoring >:c
final int? id;
Map<String, dynamic> toJson() => _$DnsRecordToJson(this);
}

View File

@ -129,7 +129,6 @@ class DigitalOceanDnsProvider extends DnsProvider {
for (final rawRecord in result.data) {
records.add(
DnsRecord(
id: rawRecord['id'],
name: rawRecord['name'],
type: rawRecord['type'],
content: rawRecord['data'],