toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final deploymentReadyOption = this.deploymentReadyOption;
  final greenFleetProvisioningOption = this.greenFleetProvisioningOption;
  final terminateBlueInstancesOnDeploymentSuccess =
      this.terminateBlueInstancesOnDeploymentSuccess;
  return {
    if (deploymentReadyOption != null)
      'deploymentReadyOption': deploymentReadyOption,
    if (greenFleetProvisioningOption != null)
      'greenFleetProvisioningOption': greenFleetProvisioningOption,
    if (terminateBlueInstancesOnDeploymentSuccess != null)
      'terminateBlueInstancesOnDeploymentSuccess':
          terminateBlueInstancesOnDeploymentSuccess,
  };
}