SessionData constructor

  1. @JsonSerializable(includeIfNull: false)
const SessionData({
  1. required String topic,
  2. required String pairingTopic,
  3. required Relay relay,
  4. required int expiry,
  5. required bool acknowledged,
  6. required String controller,
  7. required Map<String, Namespace> namespaces,
  8. required ConnectionMetadata self,
  9. required ConnectionMetadata peer,
  10. Map<String, RequiredNamespace>? requiredNamespaces,
  11. Map<String, RequiredNamespace>? optionalNamespaces,
  12. Map<String, String>? sessionProperties,
  13. List<Cacao>? authentication,
  14. @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;