AwsApiGatewayV2StageDetails.fromJson constructor
AwsApiGatewayV2StageDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AwsApiGatewayV2StageDetails.fromJson(Map<String, dynamic> json) {
return AwsApiGatewayV2StageDetails(
accessLogSettings: json['AccessLogSettings'] != null
? AwsApiGatewayAccessLogSettings.fromJson(
json['AccessLogSettings'] as Map<String, dynamic>)
: null,
apiGatewayManaged: json['ApiGatewayManaged'] as bool?,
autoDeploy: json['AutoDeploy'] as bool?,
createdDate: json['CreatedDate'] as String?,
defaultRouteSettings: json['DefaultRouteSettings'] != null
? AwsApiGatewayV2RouteSettings.fromJson(
json['DefaultRouteSettings'] as Map<String, dynamic>)
: null,
deploymentId: json['DeploymentId'] as String?,
description: json['Description'] as String?,
lastDeploymentStatusMessage:
json['LastDeploymentStatusMessage'] as String?,
lastUpdatedDate: json['LastUpdatedDate'] as String?,
routeSettings: json['RouteSettings'] != null
? AwsApiGatewayV2RouteSettings.fromJson(
json['RouteSettings'] as Map<String, dynamic>)
: null,
stageName: json['StageName'] as String?,
stageVariables: (json['StageVariables'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}