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 (gateway != null) {
_json[r'gateway'] = gateway;
}
return _json;
}