Environment class
A model class representing an environment configuration
Constructors
-
Environment({required String name, required String baseUrl, Map<
String, dynamic> config = const {}, bool isDefault = false, String? description}) -
const
-
Environment.fromJson(Map<
String, dynamic> json) -
Create environment from JSON
factory
Properties
- baseUrl → String
-
The base URL for API calls
final
-
config
→ Map<
String, dynamic> -
Additional configuration parameters
final
- description → String?
-
A description of the environment
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isDefault → bool
-
Whether this environment is the default one
final
- name → String
-
The name of the environment (e.g., 'development', 'staging', 'production')
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? name, String? baseUrl, Map< String, dynamic> ? config, bool? isDefault, String? description}) → Environment - Create a copy of this environment with updated values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert environment to JSON
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override