toJson method
Converts a PodDNSConfigOption instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempName = name;
final tempValue = value;
if (tempName != null) {
jsonData['name'] = tempName;
}
if (tempValue != null) {
jsonData['value'] = tempValue;
}
return jsonData;
}