toJson method

Map<String, dynamic> toJson()

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(),
  };
}