toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (fullPathMatch != null) 'fullPathMatch': fullPathMatch!,
      if (headerMatches != null) 'headerMatches': headerMatches!,
      if (ignoreCase != null) 'ignoreCase': ignoreCase!,
      if (metadataFilters != null) 'metadataFilters': metadataFilters!,
      if (pathTemplateMatch != null) 'pathTemplateMatch': pathTemplateMatch!,
      if (prefixMatch != null) 'prefixMatch': prefixMatch!,
      if (queryParameterMatches != null)
        'queryParameterMatches': queryParameterMatches!,
      if (regexMatch != null) 'regexMatch': regexMatch!,
    };