ServerVariable class
Text
- Annotations
-
- @freezed
Constructors
-
ServerVariable.new({@JsonKey(name: 'enum') List<
String> ? enumValue, @JsonKey(name: 'default') required String defaultValue, String? description}) -
constfactory
-
ServerVariable.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $ServerVariableCopyWith<
ServerVariable> -
Create a copy of ServerVariable
with the given fields replaced by the non-null parameter values.
no setterinherited
- defaultValue → String
-
The default value to use for substitution, which SHALL be sent if an alternate
value is not supplied. Note this behavior is different than the Schema Object's
treatment of default values, because in those cases parameter values are optional.
If the enum is defined, the value must exist in the enum's values.
no setterinherited
- description → String?
-
An optional string describing the host designated by the URL.
no setterinherited
-
enumValue
→ List<
String> ? -
An enumeration of string values to be used if the substitution
options are from a limited set. The array must not be empty.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ServerVariable value)) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> (TResult? $default(_ServerVariable value)?) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> (TResult $default(_ServerVariable value)?, {required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ServerVariable to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited