toJson method
Implementation
Map<String, dynamic> toJson() {
final dnsRecords = this.dnsRecords;
final namespaceId = this.namespaceId;
final routingPolicy = this.routingPolicy;
return {
'DnsRecords': dnsRecords,
if (namespaceId != null) 'NamespaceId': namespaceId,
if (routingPolicy != null) 'RoutingPolicy': routingPolicy.toValue(),
};
}