DeploymentTarget.fromJson constructor
DeploymentTarget.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DeploymentTarget.fromJson(Map<String, dynamic> json) {
return DeploymentTarget(
cloudFormationTarget: json['cloudFormationTarget'] != null
? CloudFormationTarget.fromJson(
json['cloudFormationTarget'] as Map<String, dynamic>)
: null,
deploymentTargetType:
(json['deploymentTargetType'] as String?)?.toDeploymentTargetType(),
ecsTarget: json['ecsTarget'] != null
? ECSTarget.fromJson(json['ecsTarget'] as Map<String, dynamic>)
: null,
instanceTarget: json['instanceTarget'] != null
? InstanceTarget.fromJson(
json['instanceTarget'] as Map<String, dynamic>)
: null,
lambdaTarget: json['lambdaTarget'] != null
? LambdaTarget.fromJson(json['lambdaTarget'] as Map<String, dynamic>)
: null,
);
}