MethodSetting.fromJson constructor
MethodSetting.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MethodSetting.fromJson(Map<String, dynamic> json) {
return MethodSetting(
cacheDataEncrypted: json['cacheDataEncrypted'] as bool?,
cacheTtlInSeconds: json['cacheTtlInSeconds'] as int?,
cachingEnabled: json['cachingEnabled'] as bool?,
dataTraceEnabled: json['dataTraceEnabled'] as bool?,
loggingLevel: json['loggingLevel'] as String?,
metricsEnabled: json['metricsEnabled'] as bool?,
requireAuthorizationForCacheControl:
json['requireAuthorizationForCacheControl'] as bool?,
throttlingBurstLimit: json['throttlingBurstLimit'] as int?,
throttlingRateLimit: json['throttlingRateLimit'] as double?,
unauthorizedCacheControlHeaderStrategy:
(json['unauthorizedCacheControlHeaderStrategy'] as String?)
?.toUnauthorizedCacheControlHeaderStrategy(),
);
}