AwsApiGatewayMethodSettings.fromJson constructor

AwsApiGatewayMethodSettings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AwsApiGatewayMethodSettings.fromJson(Map<String, dynamic> json) {
  return AwsApiGatewayMethodSettings(
    cacheDataEncrypted: json['CacheDataEncrypted'] as bool?,
    cacheTtlInSeconds: json['CacheTtlInSeconds'] as int?,
    cachingEnabled: json['CachingEnabled'] as bool?,
    dataTraceEnabled: json['DataTraceEnabled'] as bool?,
    httpMethod: json['HttpMethod'] as String?,
    loggingLevel: json['LoggingLevel'] as String?,
    metricsEnabled: json['MetricsEnabled'] as bool?,
    requireAuthorizationForCacheControl:
        json['RequireAuthorizationForCacheControl'] as bool?,
    resourcePath: json['ResourcePath'] as String?,
    throttlingBurstLimit: json['ThrottlingBurstLimit'] as int?,
    throttlingRateLimit: json['ThrottlingRateLimit'] as double?,
    unauthorizedCacheControlHeaderStrategy:
        json['UnauthorizedCacheControlHeaderStrategy'] as String?,
  );
}