DeploymentConfig class
Represents the configuration for a deployment process.
This class encapsulates details about a specific deployment, including its ID, target environment, URL, server information, artifact name, and rollback behavior. It provides methods for converting between JSON and Dart objects for data persistence and serialization.
Constructors
- DeploymentConfig({required String deploymentId, required String environment, required String url, required String server, required String artifactName, required bool rollbackOnFailure})
- Creates a DeploymentConfig instance.
-
DeploymentConfig.fromJson(Map<
String, dynamic> json) -
Creates a DeploymentConfig instance from a JSON map.
factory
Properties
- artifactName → String
-
The name of the deployment artifact (e.g., a zip file or Docker image).
final
- deploymentId → String
-
The unique identifier for the deployment.
final
- environment → String
-
The target environment for the deployment (e.g., "staging", "production").
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rollbackOnFailure → bool
-
Whether to automatically roll back the deployment if it fails.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server → String
-
The server where the application is deployed.
final
- url → String
-
The URL of the deployed application.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this DeploymentConfig instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited