toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final allowedHTTPMethods = this.allowedHTTPMethods;
  final cachedHTTPMethods = this.cachedHTTPMethods;
  final defaultTTL = this.defaultTTL;
  final forwardedCookies = this.forwardedCookies;
  final forwardedHeaders = this.forwardedHeaders;
  final forwardedQueryStrings = this.forwardedQueryStrings;
  final maximumTTL = this.maximumTTL;
  final minimumTTL = this.minimumTTL;
  return {
    if (allowedHTTPMethods != null) 'allowedHTTPMethods': allowedHTTPMethods,
    if (cachedHTTPMethods != null) 'cachedHTTPMethods': cachedHTTPMethods,
    if (defaultTTL != null) 'defaultTTL': defaultTTL,
    if (forwardedCookies != null) 'forwardedCookies': forwardedCookies,
    if (forwardedHeaders != null) 'forwardedHeaders': forwardedHeaders,
    if (forwardedQueryStrings != null)
      'forwardedQueryStrings': forwardedQueryStrings,
    if (maximumTTL != null) 'maximumTTL': maximumTTL,
    if (minimumTTL != null) 'minimumTTL': minimumTTL,
  };
}