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. Map<String, RequiredNamespace>? requiredNamespaces,
  9. Map<String, RequiredNamespace>? optionalNamespaces,
  10. Map<String, String>? sessionProperties,
  11. required ConnectionMetadata self,
  12. required ConnectionMetadata peer,
})

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,
  Map<String, RequiredNamespace>? requiredNamespaces,
  Map<String, RequiredNamespace>? optionalNamespaces,
  Map<String, String>? sessionProperties,
  required ConnectionMetadata self,
  required ConnectionMetadata peer,
}) = _SessionData;