AwsApiGatewayCanarySettings.fromJson constructor

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

Implementation

factory AwsApiGatewayCanarySettings.fromJson(Map<String, dynamic> json) {
  return AwsApiGatewayCanarySettings(
    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?,
  );
}