toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cacheDataEncrypted = this.cacheDataEncrypted;
  final cacheTtlInSeconds = this.cacheTtlInSeconds;
  final cachingEnabled = this.cachingEnabled;
  final dataTraceEnabled = this.dataTraceEnabled;
  final httpMethod = this.httpMethod;
  final loggingLevel = this.loggingLevel;
  final metricsEnabled = this.metricsEnabled;
  final requireAuthorizationForCacheControl =
      this.requireAuthorizationForCacheControl;
  final resourcePath = this.resourcePath;
  final throttlingBurstLimit = this.throttlingBurstLimit;
  final throttlingRateLimit = this.throttlingRateLimit;
  final unauthorizedCacheControlHeaderStrategy =
      this.unauthorizedCacheControlHeaderStrategy;
  return {
    if (cacheDataEncrypted != null) 'CacheDataEncrypted': cacheDataEncrypted,
    if (cacheTtlInSeconds != null) 'CacheTtlInSeconds': cacheTtlInSeconds,
    if (cachingEnabled != null) 'CachingEnabled': cachingEnabled,
    if (dataTraceEnabled != null) 'DataTraceEnabled': dataTraceEnabled,
    if (httpMethod != null) 'HttpMethod': httpMethod,
    if (loggingLevel != null) 'LoggingLevel': loggingLevel,
    if (metricsEnabled != null) 'MetricsEnabled': metricsEnabled,
    if (requireAuthorizationForCacheControl != null)
      'RequireAuthorizationForCacheControl':
          requireAuthorizationForCacheControl,
    if (resourcePath != null) 'ResourcePath': resourcePath,
    if (throttlingBurstLimit != null)
      'ThrottlingBurstLimit': throttlingBurstLimit,
    if (throttlingRateLimit != null)
      'ThrottlingRateLimit': throttlingRateLimit,
    if (unauthorizedCacheControlHeaderStrategy != null)
      'UnauthorizedCacheControlHeaderStrategy':
          unauthorizedCacheControlHeaderStrategy,
  };
}