toJson method

Map<String, dynamic> toJson()

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!,
    };