AwsApiGatewayStageDetails.fromJson constructor

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

Implementation

factory AwsApiGatewayStageDetails.fromJson(Map<String, dynamic> json) {
  return AwsApiGatewayStageDetails(
    accessLogSettings: json['AccessLogSettings'] != null
        ? AwsApiGatewayAccessLogSettings.fromJson(
            json['AccessLogSettings'] as Map<String, dynamic>)
        : null,
    cacheClusterEnabled: json['CacheClusterEnabled'] as bool?,
    cacheClusterSize: json['CacheClusterSize'] as String?,
    cacheClusterStatus: json['CacheClusterStatus'] as String?,
    canarySettings: json['CanarySettings'] != null
        ? AwsApiGatewayCanarySettings.fromJson(
            json['CanarySettings'] as Map<String, dynamic>)
        : null,
    clientCertificateId: json['ClientCertificateId'] as String?,
    createdDate: json['CreatedDate'] as String?,
    deploymentId: json['DeploymentId'] as String?,
    description: json['Description'] as String?,
    documentationVersion: json['DocumentationVersion'] as String?,
    lastUpdatedDate: json['LastUpdatedDate'] as String?,
    methodSettings: (json['MethodSettings'] as List?)
        ?.whereNotNull()
        .map((e) =>
            AwsApiGatewayMethodSettings.fromJson(e as Map<String, dynamic>))
        .toList(),
    stageName: json['StageName'] as String?,
    tracingEnabled: json['TracingEnabled'] as bool?,
    variables: (json['Variables'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    webAclArn: json['WebAclArn'] as String?,
  );
}