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