ServerVariable class abstract
Text
- Available extensions
- 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 -
Available on ServerVariable, provided by the ServerVariablePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ServerVariable value)?) → TResult? -
Available on ServerVariable, provided by the ServerVariablePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ServerVariable value)?, {required TResult orElse()}) → TResult -
Available on ServerVariable, provided by the ServerVariablePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(List< String> ? enumValue, String defaultValue, String? description)?, {required TResult orElse()}) → TResult -
Available on ServerVariable, provided by the ServerVariablePatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
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
-
when<
TResult extends Object?> (TResult $default(List< String> ? enumValue, String defaultValue, String? description)) → TResult -
Available on ServerVariable, provided by the ServerVariablePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(List< String> ? enumValue, String defaultValue, String? description)?) → TResult? -
Available on ServerVariable, provided by the ServerVariablePatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited