toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final field = this.field;
  final hostHeaderConfig = this.hostHeaderConfig;
  final httpHeaderConfig = this.httpHeaderConfig;
  final httpRequestMethodConfig = this.httpRequestMethodConfig;
  final pathPatternConfig = this.pathPatternConfig;
  final queryStringConfig = this.queryStringConfig;
  final sourceIpConfig = this.sourceIpConfig;
  final values = this.values;
  return {
    if (field != null) 'Field': field,
    if (hostHeaderConfig != null) 'HostHeaderConfig': hostHeaderConfig,
    if (httpHeaderConfig != null) 'HttpHeaderConfig': httpHeaderConfig,
    if (httpRequestMethodConfig != null)
      'HttpRequestMethodConfig': httpRequestMethodConfig,
    if (pathPatternConfig != null) 'PathPatternConfig': pathPatternConfig,
    if (queryStringConfig != null) 'QueryStringConfig': queryStringConfig,
    if (sourceIpConfig != null) 'SourceIpConfig': sourceIpConfig,
    if (values != null) 'Values': values,
  };
}