DeploymentGroupInfo.fromJson constructor
DeploymentGroupInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DeploymentGroupInfo.fromJson(Map<String, dynamic> json) {
return DeploymentGroupInfo(
alarmConfiguration: json['alarmConfiguration'] != null
? AlarmConfiguration.fromJson(
json['alarmConfiguration'] as Map<String, dynamic>)
: null,
applicationName: json['applicationName'] as String?,
autoRollbackConfiguration: json['autoRollbackConfiguration'] != null
? AutoRollbackConfiguration.fromJson(
json['autoRollbackConfiguration'] as Map<String, dynamic>)
: null,
autoScalingGroups: (json['autoScalingGroups'] as List?)
?.whereNotNull()
.map((e) => AutoScalingGroup.fromJson(e as Map<String, dynamic>))
.toList(),
blueGreenDeploymentConfiguration:
json['blueGreenDeploymentConfiguration'] != null
? BlueGreenDeploymentConfiguration.fromJson(
json['blueGreenDeploymentConfiguration']
as Map<String, dynamic>)
: null,
computePlatform:
(json['computePlatform'] as String?)?.toComputePlatform(),
deploymentConfigName: json['deploymentConfigName'] as String?,
deploymentGroupId: json['deploymentGroupId'] as String?,
deploymentGroupName: json['deploymentGroupName'] as String?,
deploymentStyle: json['deploymentStyle'] != null
? DeploymentStyle.fromJson(
json['deploymentStyle'] as Map<String, dynamic>)
: null,
ec2TagFilters: (json['ec2TagFilters'] as List?)
?.whereNotNull()
.map((e) => EC2TagFilter.fromJson(e as Map<String, dynamic>))
.toList(),
ec2TagSet: json['ec2TagSet'] != null
? EC2TagSet.fromJson(json['ec2TagSet'] as Map<String, dynamic>)
: null,
ecsServices: (json['ecsServices'] as List?)
?.whereNotNull()
.map((e) => ECSService.fromJson(e as Map<String, dynamic>))
.toList(),
lastAttemptedDeployment: json['lastAttemptedDeployment'] != null
? LastDeploymentInfo.fromJson(
json['lastAttemptedDeployment'] as Map<String, dynamic>)
: null,
lastSuccessfulDeployment: json['lastSuccessfulDeployment'] != null
? LastDeploymentInfo.fromJson(
json['lastSuccessfulDeployment'] as Map<String, dynamic>)
: null,
loadBalancerInfo: json['loadBalancerInfo'] != null
? LoadBalancerInfo.fromJson(
json['loadBalancerInfo'] as Map<String, dynamic>)
: null,
onPremisesInstanceTagFilters:
(json['onPremisesInstanceTagFilters'] as List?)
?.whereNotNull()
.map((e) => TagFilter.fromJson(e as Map<String, dynamic>))
.toList(),
onPremisesTagSet: json['onPremisesTagSet'] != null
? OnPremisesTagSet.fromJson(
json['onPremisesTagSet'] as Map<String, dynamic>)
: null,
serviceRoleArn: json['serviceRoleArn'] as String?,
targetRevision: json['targetRevision'] != null
? RevisionLocation.fromJson(
json['targetRevision'] as Map<String, dynamic>)
: null,
triggerConfigurations: (json['triggerConfigurations'] as List?)
?.whereNotNull()
.map((e) => TriggerConfig.fromJson(e as Map<String, dynamic>))
.toList(),
);
}