SessionData class sealed
- Available extensions
- Annotations
-
- @freezed
Constructors
-
SessionData.new({required String topic, required String pairingTopic, required Relay relay, required int expiry, required bool acknowledged, required String controller, required Map<
String, Namespace> namespaces, required ConnectionMetadata self, required ConnectionMetadata peer, Map<String, RequiredNamespace> ? requiredNamespaces, Map<String, RequiredNamespace> ? optionalNamespaces, Map<String, String> ? sessionProperties, List<Cacao> ? authentication, @Default(TransportType.relay) TransportType transportType}) -
constfactory
-
SessionData.fromJson(Map<
String, dynamic> json) -
factory
Properties
- acknowledged → bool
-
no setterinherited
-
authentication
→ List<
Cacao> ? -
no setterinherited
- controller → String
-
no setterinherited
-
copyWith
→ $SessionDataCopyWith<
SessionData> -
Create a copy of SessionData
with the given fields replaced by the non-null parameter values.
no setterinherited
- expiry → int
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
namespaces
→ Map<
String, Namespace> -
no setterinherited
-
optionalNamespaces
→ Map<
String, RequiredNamespace> ? -
no setterinherited
- pairingTopic → String
-
no setterinherited
- peer → ConnectionMetadata
-
no setterinherited
- relay → Relay
-
no setterinherited
-
requiredNamespaces
→ Map<
String, RequiredNamespace> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- self → ConnectionMetadata
-
no setterinherited
-
sessionProperties
→ Map<
String, String> ? -
no setterinherited
- topic → String
-
no setterinherited
- transportType → TransportType
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_SessionData value)) → TResult -
Available on SessionData, provided by the SessionDataPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_SessionData value)?) → TResult? -
Available on SessionData, provided by the SessionDataPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_SessionData value)?, {required TResult orElse()}) → TResult -
Available on SessionData, provided by the SessionDataPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String topic, String pairingTopic, Relay relay, int expiry, bool acknowledged, String controller, Map< String, Namespace> namespaces, ConnectionMetadata self, ConnectionMetadata peer, Map<String, RequiredNamespace> ? requiredNamespaces, Map<String, RequiredNamespace> ? optionalNamespaces, Map<String, String> ? sessionProperties, List<Cacao> ? authentication, TransportType transportType)?, {required TResult orElse()}) → TResult -
Available on SessionData, provided by the SessionDataPatterns 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 SessionData to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String topic, String pairingTopic, Relay relay, int expiry, bool acknowledged, String controller, Map< String, Namespace> namespaces, ConnectionMetadata self, ConnectionMetadata peer, Map<String, RequiredNamespace> ? requiredNamespaces, Map<String, RequiredNamespace> ? optionalNamespaces, Map<String, String> ? sessionProperties, List<Cacao> ? authentication, TransportType transportType)) → TResult -
Available on SessionData, provided by the SessionDataPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String topic, String pairingTopic, Relay relay, int expiry, bool acknowledged, String controller, Map< String, Namespace> namespaces, ConnectionMetadata self, ConnectionMetadata peer, Map<String, RequiredNamespace> ? requiredNamespaces, Map<String, RequiredNamespace> ? optionalNamespaces, Map<String, String> ? sessionProperties, List<Cacao> ? authentication, TransportType transportType)?) → TResult? -
Available on SessionData, provided by the SessionDataPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited