SessionData constructor
- @JsonSerializable(includeIfNull: false)
const
SessionData(
{ - 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,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory SessionData({
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,
}) = _SessionData;