toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (hosts != null) 'hosts': hosts!,
if (httpHeaderMatch != null) 'httpHeaderMatch': httpHeaderMatch!,
if (methods != null) 'methods': methods!,
if (ports != null) 'ports': ports!,
};