toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dns = this.dns;
  return {
    if (dns != null) 'dns': dns,
  };
}