DeploymentStrategy.fromJson constructor
Creates a DeploymentStrategy from JSON data.
Implementation
factory DeploymentStrategy.fromJson(Map<String, dynamic> json) {
final tempRollingUpdateJson = json['rollingUpdate'];
final tempTypeJson = json['type'];
final RollingUpdateDeployment? tempRollingUpdate =
tempRollingUpdateJson != null
? RollingUpdateDeployment.fromJson(tempRollingUpdateJson)
: null;
final String? tempType = tempTypeJson;
return DeploymentStrategy(
rollingUpdate: tempRollingUpdate,
type: tempType,
);
}