toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (method != null) {
_json[r'method'] = method;
}
if (address != null) {
_json[r'address'] = address;
}
if (prefix != null) {
_json[r'prefix'] = prefix;
}
if (dns1 != null) {
_json[r'dns1'] = dns1;
}
if (dns2 != null) {
_json[r'dns2'] = dns2;
}
if (gateway != null) {
_json[r'gateway'] = gateway;
}
if (mtu != null) {
_json[r'mtu'] = mtu;
}
return _json;
}