DeploymentInfo.fromJson constructor
DeploymentInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DeploymentInfo.fromJson(Map<String, dynamic> json) {
return DeploymentInfo(
additionalDeploymentStatusInfo:
json['additionalDeploymentStatusInfo'] as String?,
applicationName: json['applicationName'] as String?,
autoRollbackConfiguration: json['autoRollbackConfiguration'] != null
? AutoRollbackConfiguration.fromJson(
json['autoRollbackConfiguration'] as Map<String, dynamic>)
: null,
blueGreenDeploymentConfiguration:
json['blueGreenDeploymentConfiguration'] != null
? BlueGreenDeploymentConfiguration.fromJson(
json['blueGreenDeploymentConfiguration']
as Map<String, dynamic>)
: null,
completeTime: timeStampFromJson(json['completeTime']),
computePlatform:
(json['computePlatform'] as String?)?.toComputePlatform(),
createTime: timeStampFromJson(json['createTime']),
creator: (json['creator'] as String?)?.toDeploymentCreator(),
deploymentConfigName: json['deploymentConfigName'] as String?,
deploymentGroupName: json['deploymentGroupName'] as String?,
deploymentId: json['deploymentId'] as String?,
deploymentOverview: json['deploymentOverview'] != null
? DeploymentOverview.fromJson(
json['deploymentOverview'] as Map<String, dynamic>)
: null,
deploymentStatusMessages: (json['deploymentStatusMessages'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
deploymentStyle: json['deploymentStyle'] != null
? DeploymentStyle.fromJson(
json['deploymentStyle'] as Map<String, dynamic>)
: null,
description: json['description'] as String?,
errorInformation: json['errorInformation'] != null
? ErrorInformation.fromJson(
json['errorInformation'] as Map<String, dynamic>)
: null,
externalId: json['externalId'] as String?,
fileExistsBehavior:
(json['fileExistsBehavior'] as String?)?.toFileExistsBehavior(),
ignoreApplicationStopFailures:
json['ignoreApplicationStopFailures'] as bool?,
instanceTerminationWaitTimeStarted:
json['instanceTerminationWaitTimeStarted'] as bool?,
loadBalancerInfo: json['loadBalancerInfo'] != null
? LoadBalancerInfo.fromJson(
json['loadBalancerInfo'] as Map<String, dynamic>)
: null,
previousRevision: json['previousRevision'] != null
? RevisionLocation.fromJson(
json['previousRevision'] as Map<String, dynamic>)
: null,
revision: json['revision'] != null
? RevisionLocation.fromJson(json['revision'] as Map<String, dynamic>)
: null,
rollbackInfo: json['rollbackInfo'] != null
? RollbackInfo.fromJson(json['rollbackInfo'] as Map<String, dynamic>)
: null,
startTime: timeStampFromJson(json['startTime']),
status: (json['status'] as String?)?.toDeploymentStatus(),
targetInstances: json['targetInstances'] != null
? TargetInstances.fromJson(
json['targetInstances'] as Map<String, dynamic>)
: null,
updateOutdatedInstancesOnly: json['updateOutdatedInstancesOnly'] as bool?,
);
}