selfprivacy.org.app/lib/logic/models/json/desec_dns_info.g.dart

36 lines
1.1 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'desec_dns_info.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
DesecDomain _$DesecDomainFromJson(Map<String, dynamic> json) => DesecDomain(
json['name'] as String,
json['minimum_ttl'] as int,
);
Map<String, dynamic> _$DesecDomainToJson(DesecDomain instance) =>
<String, dynamic>{
'name': instance.name,
'minimum_ttl': instance.minimumTtl,
};
DesecDnsRecord _$DesecDnsRecordFromJson(Map<String, dynamic> json) =>
DesecDnsRecord(
subname: json['subname'] as String,
type: json['type'] as String,
ttl: json['ttl'] as int,
records:
(json['records'] as List<dynamic>).map((e) => e as String).toList(),
);
Map<String, dynamic> _$DesecDnsRecordToJson(DesecDnsRecord instance) =>
<String, dynamic>{
'subname': instance.subname,
'type': instance.type,
'ttl': instance.ttl,
'records': instance.records,
};