GetStageResponse.fromJson constructor
GetStageResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetStageResponse.fromJson(Map<String, dynamic> json) {
return GetStageResponse(
accessLogSettings: json['accessLogSettings'] != null
? AccessLogSettings.fromJson(
json['accessLogSettings'] as Map<String, dynamic>)
: null,
apiGatewayManaged: json['apiGatewayManaged'] as bool?,
autoDeploy: json['autoDeploy'] as bool?,
clientCertificateId: json['clientCertificateId'] as String?,
createdDate: timeStampFromJson(json['createdDate']),
defaultRouteSettings: json['defaultRouteSettings'] != null
? RouteSettings.fromJson(
json['defaultRouteSettings'] as Map<String, dynamic>)
: null,
deploymentId: json['deploymentId'] as String?,
description: json['description'] as String?,
lastDeploymentStatusMessage:
json['lastDeploymentStatusMessage'] as String?,
lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']),
routeSettings: (json['routeSettings'] as Map<String, dynamic>?)?.map(
(k, e) =>
MapEntry(k, RouteSettings.fromJson(e as Map<String, dynamic>))),
stageName: json['stageName'] as String?,
stageVariables: (json['stageVariables'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}