CanarySettings.fromJson constructor
Implementation
factory CanarySettings.fromJson(Map<String, dynamic> json) {
return CanarySettings(
deploymentId: json['deploymentId'] as String?,
percentTraffic: json['percentTraffic'] as double?,
stageVariableOverrides:
(json['stageVariableOverrides'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
useStageCache: json['useStageCache'] as bool?,
);
}